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

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: yoyo 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
« no previous file with comments | « chrome/common/chrome_notification_types.h ('k') | chrome/common/extensions/extension_action.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..d701de8afe8c172a5ad217ddcf51178c0bac47bd 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 has_changed() const { return has_changed_; }
+ void set_has_changed(bool value) { has_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 settings have changed from what was
+ // specified in the manifest.
+ bool has_changed_;
+
DISALLOW_COPY_AND_ASSIGN(ExtensionAction);
};
« no previous file with comments | « chrome/common/chrome_notification_types.h ('k') | chrome/common/extensions/extension_action.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698