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

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

Issue 14990002: Make sure keybindings removed don't come back during extension update. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove command handler Created 7 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
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 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 // Returns true if the extension was installed from the Chrome Web Store. 505 // Returns true if the extension was installed from the Chrome Web Store.
506 bool IsFromWebStore(const std::string& extension_id) const; 506 bool IsFromWebStore(const std::string& extension_id) const;
507 507
508 // Returns true if the extension was installed from an App generated from a 508 // Returns true if the extension was installed from an App generated from a
509 // bookmark. 509 // bookmark.
510 bool IsFromBookmark(const std::string& extension_id) const; 510 bool IsFromBookmark(const std::string& extension_id) const;
511 511
512 // Returns true if the extension was installed as a default app. 512 // Returns true if the extension was installed as a default app.
513 bool WasInstalledByDefault(const std::string& extension_id) const; 513 bool WasInstalledByDefault(const std::string& extension_id) const;
514 514
515 // Gets/Sets a flag with the extension that signifies that the initial
516 // keybindings have been assigned (so that it is not overwritten when the
517 // extension updates).
518 void SetInitialBindingsHaveBeenAssigned(const std::string& extension_id);
519 bool InitialBindingsHaveBeenAssigned(const std::string& extension_id) const;
520
515 // Helper method to acquire the installation time of an extension. 521 // Helper method to acquire the installation time of an extension.
516 // Returns base::Time() if the installation time could not be parsed or 522 // Returns base::Time() if the installation time could not be parsed or
517 // found. 523 // found.
518 base::Time GetInstallTime(const std::string& extension_id) const; 524 base::Time GetInstallTime(const std::string& extension_id) const;
519 525
520 static void RegisterUserPrefs(PrefRegistrySyncable* registry); 526 static void RegisterUserPrefs(PrefRegistrySyncable* registry);
521 527
522 ContentSettingsStore* content_settings_store() { 528 ContentSettingsStore* content_settings_store() {
523 return content_settings_store_.get(); 529 return content_settings_store_.get();
524 } 530 }
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 scoped_refptr<ContentSettingsStore> content_settings_store_; 694 scoped_refptr<ContentSettingsStore> content_settings_store_;
689 695
690 scoped_ptr<TimeProvider> time_provider_; 696 scoped_ptr<TimeProvider> time_provider_;
691 697
692 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 698 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
693 }; 699 };
694 700
695 } // namespace extensions 701 } // namespace extensions
696 702
697 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ 703 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698