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

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

Issue 508563003: Remove PageActionsController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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/browser/extensions/page_action_controller.cc
diff --git a/chrome/browser/extensions/page_action_controller.cc b/chrome/browser/extensions/page_action_controller.cc
deleted file mode 100644
index 3c9fe2f02b84ee7933aaeac6add6c3b54bf6631b..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/page_action_controller.cc
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/extensions/page_action_controller.h"
-
-#include "chrome/browser/extensions/extension_action_manager.h"
-#include "content/public/browser/web_contents.h"
-
-namespace extensions {
-
-PageActionController::PageActionController(content::WebContents* web_contents)
- : web_contents_(web_contents),
- browser_context_(web_contents_->GetBrowserContext()) {
-}
-
-PageActionController::~PageActionController() {
-}
-
-ExtensionAction* PageActionController::GetActionForExtension(
- const Extension* extension) {
- return ExtensionActionManager::Get(browser_context_)->GetPageAction(
- *extension);
-}
-
-void PageActionController::OnNavigated() {
- // Clearing extension action values is handled in TabHelper, so nothing to
- // do here.
-}
-
-} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698