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

Unified Diff: chrome/browser/extensions/page_action_controller.cc

Issue 10834184: Copy the !details.is_in_page restriction from TabHelper to PageActionController::DidNavigateMainFra… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/page_action_controller.cc
diff --git a/chrome/browser/extensions/page_action_controller.cc b/chrome/browser/extensions/page_action_controller.cc
index 3726336c3998cc2722b09c565a86434a73fcc513..5b95834676a53d507053680d8dc1d622d01d98f3 100644
--- a/chrome/browser/extensions/page_action_controller.cc
+++ b/chrome/browser/extensions/page_action_controller.cc
@@ -14,6 +14,7 @@
#include "chrome/common/extensions/extension_set.h"
#include "chrome/common/chrome_notification_types.h"
#include "content/public/browser/invalidate_type.h"
+#include "content/public/browser/navigation_details.h"
#include "content/public/browser/notification_service.h"
#include "content/public/browser/web_contents.h"
@@ -86,6 +87,9 @@ void PageActionController::NotifyChange() {
void PageActionController::DidNavigateMainFrame(
const content::LoadCommittedDetails& details,
const content::FrameNavigateParams& params) {
+ if (details.is_in_page)
+ return;
+
const std::vector<ExtensionAction*> current_actions = GetCurrentActions();
not at google - send to devlin 2012/08/06 22:09:19 remind me why we clear page actions on navigation?
Jeffrey Yasskin 2012/08/06 22:24:25 I believe a page action is a statement that an ext
if (current_actions.empty())
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698