OLD | NEW |
---|---|
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_EXTENSION_PREFS_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
295 // Whether the external extension was installed during the first run | 295 // Whether the external extension was installed during the first run |
296 // of this profile. | 296 // of this profile. |
297 bool IsExternalInstallFirstRun(const std::string& extension_id); | 297 bool IsExternalInstallFirstRun(const std::string& extension_id); |
298 void SetExternalInstallFirstRun(const std::string& extension_id); | 298 void SetExternalInstallFirstRun(const std::string& extension_id); |
299 | 299 |
300 // Whether the user has been notified about extension with |extension_id| | 300 // Whether the user has been notified about extension with |extension_id| |
301 // being wiped out. | 301 // being wiped out. |
302 bool HasWipeoutBeenAcknowledged(const std::string& extension_id); | 302 bool HasWipeoutBeenAcknowledged(const std::string& extension_id); |
303 void SetWipeoutAcknowledged(const std::string& extension_id, bool value); | 303 void SetWipeoutAcknowledged(const std::string& extension_id, bool value); |
304 | 304 |
305 // Whether the user has been notified about extension with |extension_id| | |
306 // only running because of dev mode being on. | |
307 bool HasDevModeBeenAcknowledged(const std::string& extension_id); | |
308 void SetDevModeAcknowledged(const std::string& extension_id, bool value); | |
not at google - send to devlin
2013/12/04 17:25:13
why are we storing this in preferences? Isn't the
Finnur
2013/12/05 23:55:56
Indeed. Done.
| |
309 | |
305 // Returns true if the extension notification code has already run for the | 310 // Returns true if the extension notification code has already run for the |
306 // first time for this profile. Currently we use this flag to mean that any | 311 // first time for this profile. Currently we use this flag to mean that any |
307 // extensions that would trigger notifications should get silently | 312 // extensions that would trigger notifications should get silently |
308 // acknowledged. This is a fuse. Calling it the first time returns false. | 313 // acknowledged. This is a fuse. Calling it the first time returns false. |
309 // Subsequent calls return true. It's not possible through an API to ever | 314 // Subsequent calls return true. It's not possible through an API to ever |
310 // reset it. Don't call it unless you mean it! | 315 // reset it. Don't call it unless you mean it! |
311 bool SetAlertSystemFirstRun(); | 316 bool SetAlertSystemFirstRun(); |
312 | 317 |
313 // Checks if extensions are blacklisted by default, by policy. | 318 // Checks if extensions are blacklisted by default, by policy. |
314 // The ManagementPolicy::Provider methods also take this into account, and | 319 // The ManagementPolicy::Provider methods also take this into account, and |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
653 scoped_ptr<TimeProvider> time_provider_; | 658 scoped_ptr<TimeProvider> time_provider_; |
654 | 659 |
655 bool extensions_disabled_; | 660 bool extensions_disabled_; |
656 | 661 |
657 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 662 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); |
658 }; | 663 }; |
659 | 664 |
660 } // namespace extensions | 665 } // namespace extensions |
661 | 666 |
662 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ | 667 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
OLD | NEW |