Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: chrome/browser/extensions/default_apps.h

Issue 10875065: Disable install of new default_apps for existing users (Closed) Base URL: http://git.chromium.org/git/chromium.git@disable_sync_behav
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_DEFAULT_APPS_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_DEFAULT_APPS_H_
6 #define CHROME_BROWSER_EXTENSIONS_DEFAULT_APPS_H_ 6 #define CHROME_BROWSER_EXTENSIONS_DEFAULT_APPS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "chrome/browser/extensions/external_provider_impl.h" 9 #include "chrome/browser/extensions/external_provider_impl.h"
10 10
(...skipping 14 matching lines...) Expand all
25 // Now unused, left for backward compatibility. 25 // Now unused, left for backward compatibility.
26 kProvideLegacyDefaultApps, 26 kProvideLegacyDefaultApps,
27 kNeverInstallDefaultApps, 27 kNeverInstallDefaultApps,
28 kAlreadyInstalledDefaultApps 28 kAlreadyInstalledDefaultApps
29 }; 29 };
30 30
31 bool ShouldInstallInProfile(Profile* profile); 31 bool ShouldInstallInProfile(Profile* profile);
32 32
33 bool isLocaleSupported(); 33 bool isLocaleSupported();
34 34
35 extern bool isMigration;
36
35 // Register preference properties used by default apps to maintain 37 // Register preference properties used by default apps to maintain
36 // install state. 38 // install state.
37 void RegisterUserPrefs(PrefService* prefs); 39 void RegisterUserPrefs(PrefService* prefs);
38 40
39 // A specialization of the ExternalProviderImpl that conditionally installs apps 41 // A specialization of the ExternalProviderImpl that conditionally installs apps
40 // from the chrome::DIR_DEFAULT_APPS location based on a preference in the 42 // from the chrome::DIR_DEFAULT_APPS location based on a preference in the
41 // profile. 43 // profile.
42 class Provider : public extensions::ExternalProviderImpl { 44 class Provider : public extensions::ExternalProviderImpl {
43 public: 45 public:
44 Provider(Profile* profile, 46 Provider(Profile* profile,
45 VisitorInterface* service, 47 VisitorInterface* service,
46 extensions::ExternalLoader* loader, 48 extensions::ExternalLoader* loader,
47 extensions::Extension::Location crx_location, 49 extensions::Extension::Location crx_location,
48 extensions::Extension::Location download_location, 50 extensions::Extension::Location download_location,
49 int creation_flags); 51 int creation_flags);
50 52
51 // ExternalProviderImpl overrides: 53 // ExternalProviderImpl overrides:
52 virtual void VisitRegisteredExtension() OVERRIDE; 54 virtual void VisitRegisteredExtension() OVERRIDE;
53 55
54 private: 56 private:
55 Profile* profile_; 57 Profile* profile_;
56 58
57 DISALLOW_COPY_AND_ASSIGN(Provider); 59 DISALLOW_COPY_AND_ASSIGN(Provider);
58 }; 60 };
59 61
60 } // namespace default_apps 62 } // namespace default_apps
61 63
62 #endif // CHROME_BROWSER_EXTENSIONS_DEFAULT_APPS_H_ 64 #endif // CHROME_BROWSER_EXTENSIONS_DEFAULT_APPS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/default_apps.cc » ('j') | chrome/browser/extensions/external_provider_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698