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

Side by Side Diff: chrome/browser/extensions/external_provider_impl.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, 4 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_EXTERNAL_PROVIDER_IMPL_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_IMPL_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_IMPL_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/extensions/external_provider_interface.h" 10 #include "chrome/browser/extensions/external_provider_interface.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 static const char kExternalVersion[]; 68 static const char kExternalVersion[];
69 static const char kExternalUpdateUrl[]; 69 static const char kExternalUpdateUrl[];
70 static const char kSupportedLocales[]; 70 static const char kSupportedLocales[];
71 static const char kIsBookmarkApp[]; 71 static const char kIsBookmarkApp[];
72 72
73 void set_auto_acknowledge(bool auto_acknowledge) { 73 void set_auto_acknowledge(bool auto_acknowledge) {
74 auto_acknowledge_ = auto_acknowledge; 74 auto_acknowledge_ = auto_acknowledge;
75 } 75 }
76 76
77 private: 77 private:
78 // Returns true if the app was a default app in Chrome 22.
79 static bool IsOldDefaultApp(const std::string& extension_id);
80
78 // Location for external extensions that are provided by this provider from 81 // Location for external extensions that are provided by this provider from
79 // local crx files. 82 // local crx files.
80 const Extension::Location crx_location_; 83 const Extension::Location crx_location_;
81 84
82 // Location for external extensions that are provided by this provider from 85 // Location for external extensions that are provided by this provider from
83 // update URLs. 86 // update URLs.
84 const Extension::Location download_location_; 87 const Extension::Location download_location_;
85 88
86 // Weak pointer to the object that consumes the external extensions. 89 // Weak pointer to the object that consumes the external extensions.
87 // This is zeroed out by: ServiceShutdown() 90 // This is zeroed out by: ServiceShutdown()
(...skipping 17 matching lines...) Expand all
105 // Whether loaded extensions should be automatically acknowledged, so that 108 // Whether loaded extensions should be automatically acknowledged, so that
106 // the user doesn't see an alert about them. 109 // the user doesn't see an alert about them.
107 bool auto_acknowledge_; 110 bool auto_acknowledge_;
108 111
109 DISALLOW_COPY_AND_ASSIGN(ExternalProviderImpl); 112 DISALLOW_COPY_AND_ASSIGN(ExternalProviderImpl);
110 }; 113 };
111 114
112 } // namespace extensions 115 } // namespace extensions
113 116
114 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_IMPL_H_ 117 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698