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

Side by Side Diff: extensions/browser/extension_prefs.h

Issue 246653003: Settings Overides -- warn user when extensions override their NTP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to head Created 6 years, 7 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
« no previous file with comments | « chrome/chrome_browser_extensions.gypi ('k') | extensions/browser/extension_prefs.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 HasNtpOverriddenBubbleBeenAcknowledged(const std::string& extension_id);
329 void SetNtpOverriddenBubbleBeenAcknowledged(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
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_
OLDNEW
« no previous file with comments | « chrome/chrome_browser_extensions.gypi ('k') | extensions/browser/extension_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698