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

Unified Diff: chrome/browser/extensions/api/extension_action/extension_actions_api.cc

Issue 10695070: Implement scriptBadge.requestToAct. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix more of Aaron's comments. Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/extension_action/extension_actions_api.cc
diff --git a/chrome/browser/extensions/api/extension_action/extension_actions_api.cc b/chrome/browser/extensions/api/extension_action/extension_actions_api.cc
index 0a3779d9eb01389c517300e11ff81906c72b0ac9..fce3973d9ff272fec8cc7258f310369463b5b645 100644
--- a/chrome/browser/extensions/api/extension_action/extension_actions_api.cc
+++ b/chrome/browser/extensions/api/extension_action/extension_actions_api.cc
@@ -183,6 +183,11 @@ bool ExtensionActionFunction::SetVisible(bool visible) {
return true;
}
+ExtensionTabHelper& ExtensionActionFunction::tab_helper() const {
+ CHECK(contents_);
+ return *contents_->extension_tab_helper();
+}
+
bool ExtensionActionShowFunction::RunExtensionAction() {
return SetVisible(true);
}

Powered by Google App Engine
This is Rietveld 408576698