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

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

Issue 10977048: Fix bug in disabling sync for default apps (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fix browser and integration tests, which got broken Created 8 years, 2 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_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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 111
112 // Get/Set the order that the browser actions appear in the action box. 112 // Get/Set the order that the browser actions appear in the action box.
113 ExtensionIdList GetActionBoxOrder(); 113 ExtensionIdList GetActionBoxOrder();
114 void SetActionBoxOrder(const ExtensionIdList& extension_ids); 114 void SetActionBoxOrder(const ExtensionIdList& extension_ids);
115 115
116 // Called when an extension is installed, so that prefs get created. 116 // Called when an extension is installed, so that prefs get created.
117 // If |page_ordinal| is an invalid ordinal, then a page will be found 117 // If |page_ordinal| is an invalid ordinal, then a page will be found
118 // for the App. 118 // for the App.
119 void OnExtensionInstalled(const Extension* extension, 119 void OnExtensionInstalled(const Extension* extension,
120 Extension::State initial_state, 120 Extension::State initial_state,
121 bool from_webstore,
122 const syncer::StringOrdinal& page_ordinal); 121 const syncer::StringOrdinal& page_ordinal);
123 122
124 // Called when an extension is uninstalled, so that prefs get cleaned up. 123 // Called when an extension is uninstalled, so that prefs get cleaned up.
125 void OnExtensionUninstalled(const std::string& extension_id, 124 void OnExtensionUninstalled(const std::string& extension_id,
126 const Extension::Location& location, 125 const Extension::Location& location,
127 bool external_uninstall); 126 bool external_uninstall);
128 127
129 // Called to change the extension's state when it is enabled/disabled. 128 // Called to change the extension's state when it is enabled/disabled.
130 void SetExtensionState(const std::string& extension_id, Extension::State); 129 void SetExtensionState(const std::string& extension_id, Extension::State);
131 130
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 const std::string& pref_key, 415 const std::string& pref_key,
417 bool* from_incognito); 416 bool* from_incognito);
418 417
419 // Returns true if there is an extension which controls the preference value 418 // Returns true if there is an extension which controls the preference value
420 // for |pref_key| *and* it is specific to incognito mode. 419 // for |pref_key| *and* it is specific to incognito mode.
421 bool HasIncognitoPrefValue(const std::string& pref_key); 420 bool HasIncognitoPrefValue(const std::string& pref_key);
422 421
423 // Clears incognito session-only content settings for all extensions. 422 // Clears incognito session-only content settings for all extensions.
424 void ClearIncognitoSessionOnlyContentSettings(); 423 void ClearIncognitoSessionOnlyContentSettings();
425 424
425 // Returns the creation flags mask for the extension.
426 int GetCreationFlags(const std::string& extension_id) const;
427
426 // Returns true if the extension was installed from the Chrome Web Store. 428 // Returns true if the extension was installed from the Chrome Web Store.
427 bool IsFromWebStore(const std::string& extension_id) const; 429 bool IsFromWebStore(const std::string& extension_id) const;
428 430
429 // Returns true if the extension was installed from an App generated from a 431 // Returns true if the extension was installed from an App generated from a
430 // bookmark. 432 // bookmark.
431 bool IsFromBookmark(const std::string& extension_id) const; 433 bool IsFromBookmark(const std::string& extension_id) const;
432 434
433 // Returns true if the extension was installed as a default app. 435 // Returns true if the extension was installed as a default app.
434 bool WasInstalledByDefault(const std::string& extension_id) const; 436 bool WasInstalledByDefault(const std::string& extension_id) const;
435 437
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 scoped_ptr<ExtensionSorting> extension_sorting_; 571 scoped_ptr<ExtensionSorting> extension_sorting_;
570 572
571 scoped_refptr<ContentSettingsStore> content_settings_store_; 573 scoped_refptr<ContentSettingsStore> content_settings_store_;
572 574
573 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 575 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
574 }; 576 };
575 577
576 } // namespace extensions 578 } // namespace extensions
577 579
578 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ 580 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_browsertest.cc ('k') | chrome/browser/extensions/extension_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698