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

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: Added a preference for creation_flags, Also added creation_flags check in ReloadExtensions unittest 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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 const std::string& pref_key, 416 const std::string& pref_key,
417 bool* from_incognito); 417 bool* from_incognito);
418 418
419 // Returns true if there is an extension which controls the preference value 419 // Returns true if there is an extension which controls the preference value
420 // for |pref_key| *and* it is specific to incognito mode. 420 // for |pref_key| *and* it is specific to incognito mode.
421 bool HasIncognitoPrefValue(const std::string& pref_key); 421 bool HasIncognitoPrefValue(const std::string& pref_key);
422 422
423 // Clears incognito session-only content settings for all extensions. 423 // Clears incognito session-only content settings for all extensions.
424 void ClearIncognitoSessionOnlyContentSettings(); 424 void ClearIncognitoSessionOnlyContentSettings();
425 425
426 // Returns the creation flags mask for the extension.
427 int GetCreationFlags(const std::string& extension_id) const;
428
426 // Returns true if the extension was installed from the Chrome Web Store. 429 // Returns true if the extension was installed from the Chrome Web Store.
427 bool IsFromWebStore(const std::string& extension_id) const; 430 bool IsFromWebStore(const std::string& extension_id) const;
428 431
429 // Returns true if the extension was installed from an App generated from a 432 // Returns true if the extension was installed from an App generated from a
430 // bookmark. 433 // bookmark.
431 bool IsFromBookmark(const std::string& extension_id) const; 434 bool IsFromBookmark(const std::string& extension_id) const;
432 435
433 // Returns true if the extension was installed as a default app. 436 // Returns true if the extension was installed as a default app.
434 bool WasInstalledByDefault(const std::string& extension_id) const; 437 bool WasInstalledByDefault(const std::string& extension_id) const;
435 438
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 scoped_ptr<ExtensionSorting> extension_sorting_; 572 scoped_ptr<ExtensionSorting> extension_sorting_;
570 573
571 scoped_refptr<ContentSettingsStore> content_settings_store_; 574 scoped_refptr<ContentSettingsStore> content_settings_store_;
572 575
573 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 576 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
574 }; 577 };
575 578
576 } // namespace extensions 579 } // namespace extensions
577 580
578 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ 581 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_prefs.cc » ('j') | chrome/browser/extensions/extension_prefs.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698