Chromium Code Reviews| Index: chrome/browser/extensions/default_apps.h |
| diff --git a/chrome/browser/extensions/default_apps.h b/chrome/browser/extensions/default_apps.h |
| index 7c13c8cda4b057debc485463735913061aa89823..67df26088e859fda63715427f1acce404348cc75 100644 |
| --- a/chrome/browser/extensions/default_apps.h |
| +++ b/chrome/browser/extensions/default_apps.h |
| @@ -15,9 +15,19 @@ namespace extensions { |
| class Extension; |
| } |
| +namespace base { |
| +class DictionaryValue; |
| +} |
| + |
| // Functions and types related to installing default apps. |
| namespace default_apps { |
| +bool isLocaleSupported(); |
| + |
| +// Returns true if the app was a default app in Chrome 22 |
| +bool isOldDefaultApp(const std::string& extension_id); |
|
Gaurav
2012/08/28 00:58:36
I tried removing it and putting it in anonymous na
|
| + |
| + |
| // These enum values are persisted in the user preferences, so they should not |
| // be changed. |
| enum InstallState { |
| @@ -28,10 +38,6 @@ enum InstallState { |
| kAlreadyInstalledDefaultApps |
| }; |
| -bool ShouldInstallInProfile(Profile* profile); |
| - |
| -bool isLocaleSupported(); |
| - |
| // Register preference properties used by default apps to maintain |
| // install state. |
| void RegisterUserPrefs(PrefService* prefs); |
| @@ -50,9 +56,13 @@ class Provider : public extensions::ExternalProviderImpl { |
| // ExternalProviderImpl overrides: |
| virtual void VisitRegisteredExtension() OVERRIDE; |
| + virtual void SetPrefs(base::DictionaryValue* prefs) OVERRIDE; |
| private: |
| + bool ShouldInstallInProfile(); |
| + |
| Profile* profile_; |
| + bool isMigration_; |
| DISALLOW_COPY_AND_ASSIGN(Provider); |
| }; |