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

Unified Diff: chrome/common/extensions/extension_action.h

Issue 10837155: Persist browserAction settings to the extension StateStore. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/extension_action.h
diff --git a/chrome/common/extensions/extension_action.h b/chrome/common/extensions/extension_action.h
index 5fc860fee53e6f6ec19de3d56e8579039c2c7186..edba1c126e3faa4840cbf7e208e14360f67c6d90 100644
--- a/chrome/common/extensions/extension_action.h
+++ b/chrome/common/extensions/extension_action.h
@@ -132,6 +132,9 @@ class ExtensionAction {
std::vector<std::string>* icon_paths() { return &icon_paths_; }
const std::vector<std::string>* icon_paths() const { return &icon_paths_; }
+ bool defaults_have_changed() const { return defaults_have_changed_; }
+ void set_defaults_have_changed(bool value) { defaults_have_changed_ = value; }
+
// Set the url which the popup will load when the user clicks this action's
// icon. Setting an empty URL will disable the popup for a given tab.
void SetPopupUrl(int tab_id, const GURL& url);
@@ -317,6 +320,10 @@ class ExtensionAction {
// Saves the arguments from CacheIcon() calls.
std::map<std::string, gfx::Image> path_to_icon_cache_;
+ // True if the ExtensionAction's defaults have changed from what was
Yoyo Zhou 2012/08/08 01:21:06 Isn't it that the action has changed its foobar fr
Matt Perry 2012/08/08 01:40:08 "default" is sort of an overloaded term here. I'm
+ // specified in the manifest.
+ bool defaults_have_changed_;
+
DISALLOW_COPY_AND_ASSIGN(ExtensionAction);
};

Powered by Google App Engine
This is Rietveld 408576698