Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ | 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ |
| 6 #define EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ | 6 #define EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 316 bool HasWipeoutBeenAcknowledged(const std::string& extension_id); | 316 bool HasWipeoutBeenAcknowledged(const std::string& extension_id); |
| 317 void SetWipeoutAcknowledged(const std::string& extension_id, bool value); | 317 void SetWipeoutAcknowledged(const std::string& extension_id, bool value); |
| 318 | 318 |
| 319 // Whether the user has been notified about extension with |extension_id| | 319 // Whether the user has been notified about extension with |extension_id| |
| 320 // taking over some aspect of the user's settings (homepage, startup pages, | 320 // taking over some aspect of the user's settings (homepage, startup pages, |
| 321 // or search engine). | 321 // or search engine). |
| 322 bool HasSettingsApiBubbleBeenAcknowledged(const std::string& extension_id); | 322 bool HasSettingsApiBubbleBeenAcknowledged(const std::string& extension_id); |
| 323 void SetSettingsApiBubbleBeenAcknowledged(const std::string& extension_id, | 323 void SetSettingsApiBubbleBeenAcknowledged(const std::string& extension_id, |
| 324 bool value); | 324 bool value); |
| 325 | 325 |
| 326 // Whether the user has been notified about extension with |extension_id| | |
| 327 // overriding the new tab page. | |
| 328 bool HasNtpControlledBubbleBeenAcknowledged(const std::string& extension_id); | |
|
Yoyo Zhou
2014/04/23 00:04:24
likewise, Overridden instead of Controlled?
Finnur
2014/04/23 13:51:35
Done.
| |
| 329 void SetNtpControlledBubbleBeenAcknowledged(const std::string& extension_id, | |
| 330 bool value); | |
| 331 | |
| 326 // Returns true if the extension notification code has already run for the | 332 // Returns true if the extension notification code has already run for the |
| 327 // first time for this profile. Currently we use this flag to mean that any | 333 // first time for this profile. Currently we use this flag to mean that any |
| 328 // extensions that would trigger notifications should get silently | 334 // extensions that would trigger notifications should get silently |
| 329 // acknowledged. This is a fuse. Calling it the first time returns false. | 335 // acknowledged. This is a fuse. Calling it the first time returns false. |
| 330 // Subsequent calls return true. It's not possible through an API to ever | 336 // Subsequent calls return true. It's not possible through an API to ever |
| 331 // reset it. Don't call it unless you mean it! | 337 // reset it. Don't call it unless you mean it! |
| 332 bool SetAlertSystemFirstRun(); | 338 bool SetAlertSystemFirstRun(); |
| 333 | 339 |
| 334 // Checks if extensions are blacklisted by default, by policy. | 340 // Checks if extensions are blacklisted by default, by policy. |
| 335 // The ManagementPolicy::Provider methods also take this into account, and | 341 // The ManagementPolicy::Provider methods also take this into account, and |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 707 bool extensions_disabled_; | 713 bool extensions_disabled_; |
| 708 | 714 |
| 709 ObserverList<ExtensionPrefsObserver> observer_list_; | 715 ObserverList<ExtensionPrefsObserver> observer_list_; |
| 710 | 716 |
| 711 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 717 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); |
| 712 }; | 718 }; |
| 713 | 719 |
| 714 } // namespace extensions | 720 } // namespace extensions |
| 715 | 721 |
| 716 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ | 722 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ |
| OLD | NEW |