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

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

Issue 18199003: Allow Chrome OS login profile to have different default pref values (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 5 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/browser/extensions/default_apps.cc ('k') | chrome/browser/extensions/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 (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 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 bool IsFromBookmark(const std::string& extension_id) const; 455 bool IsFromBookmark(const std::string& extension_id) const;
456 456
457 // Returns true if the extension was installed as a default app. 457 // Returns true if the extension was installed as a default app.
458 bool WasInstalledByDefault(const std::string& extension_id) const; 458 bool WasInstalledByDefault(const std::string& extension_id) const;
459 459
460 // Helper method to acquire the installation time of an extension. 460 // Helper method to acquire the installation time of an extension.
461 // Returns base::Time() if the installation time could not be parsed or 461 // Returns base::Time() if the installation time could not be parsed or
462 // found. 462 // found.
463 base::Time GetInstallTime(const std::string& extension_id) const; 463 base::Time GetInstallTime(const std::string& extension_id) const;
464 464
465 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); 465 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
466 466
467 bool extensions_disabled() { return extensions_disabled_; } 467 bool extensions_disabled() { return extensions_disabled_; }
468 468
469 ContentSettingsStore* content_settings_store() { 469 ContentSettingsStore* content_settings_store() {
470 return content_settings_store_.get(); 470 return content_settings_store_.get();
471 } 471 }
472 472
473 // The underlying PrefService. 473 // The underlying PrefService.
474 PrefService* pref_service() const { return prefs_; } 474 PrefService* pref_service() const { return prefs_; }
475 475
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 scoped_ptr<TimeProvider> time_provider_; 615 scoped_ptr<TimeProvider> time_provider_;
616 616
617 bool extensions_disabled_; 617 bool extensions_disabled_;
618 618
619 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 619 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
620 }; 620 };
621 621
622 } // namespace extensions 622 } // namespace extensions
623 623
624 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ 624 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/default_apps.cc ('k') | chrome/browser/extensions/extension_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698