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

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

Issue 8060017: Ensure that --disable-extensions disables extension prefs from being enacted (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 // Checks if kPrefBlacklist is set to true in the DictionaryValue. 459 // Checks if kPrefBlacklist is set to true in the DictionaryValue.
460 // Return false if the value is false or kPrefBlacklist does not exist. 460 // Return false if the value is false or kPrefBlacklist does not exist.
461 // This is used to decide if an extension is blacklisted. 461 // This is used to decide if an extension is blacklisted.
462 static bool IsBlacklistBitSet(base::DictionaryValue* ext); 462 static bool IsBlacklistBitSet(base::DictionaryValue* ext);
463 463
464 // Fix missing preference entries in the extensions that are were introduced 464 // Fix missing preference entries in the extensions that are were introduced
465 // in a later Chrome version. 465 // in a later Chrome version.
466 void FixMissingPrefs(const ExtensionIdSet& extension_ids); 466 void FixMissingPrefs(const ExtensionIdSet& extension_ids);
467 467
468 // Installs the persistent extension preferences into |prefs_|'s extension 468 // Installs the persistent extension preferences into |prefs_|'s extension
469 // pref store. 469 // pref store. Does nothing if |extensions_enabled| is false.
470 void InitPrefStore(); 470 void InitPrefStore(bool extensions_enabled);
471 471
472 // Migrates the permissions data in the pref store. 472 // Migrates the permissions data in the pref store.
473 void MigratePermissions(const ExtensionIdSet& extension_ids); 473 void MigratePermissions(const ExtensionIdSet& extension_ids);
474 474
475 // Checks whether there is a state pref for the extension and if so, whether 475 // Checks whether there is a state pref for the extension and if so, whether
476 // it matches |check_state|. 476 // it matches |check_state|.
477 bool DoesExtensionHaveState(const std::string& id, 477 bool DoesExtensionHaveState(const std::string& id,
478 Extension::State check_state) const; 478 Extension::State check_state) const;
479 479
480 // The pref service specific to this set of extension prefs. Owned by profile. 480 // The pref service specific to this set of extension prefs. Owned by profile.
481 PrefService* prefs_; 481 PrefService* prefs_;
482 482
483 // Base extensions install directory. 483 // Base extensions install directory.
484 FilePath install_directory_; 484 FilePath install_directory_;
485 485
486 // Weak pointer, owned by Profile. 486 // Weak pointer, owned by Profile.
487 ExtensionPrefValueMap* extension_pref_value_map_; 487 ExtensionPrefValueMap* extension_pref_value_map_;
488 488
489 scoped_refptr<ExtensionContentSettingsStore> content_settings_store_; 489 scoped_refptr<ExtensionContentSettingsStore> content_settings_store_;
490 490
491 // The URLs of all of the toolstrips. 491 // The URLs of all of the toolstrips.
492 URLList shelf_order_; 492 URLList shelf_order_;
493 493
494 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 494 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
495 }; 495 };
496 496
497 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ 497 #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