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

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

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.h
diff --git a/chrome/browser/extensions/page_action_controller.h b/chrome/browser/extensions/page_action_controller.h
deleted file mode 100644
index 1abaf5e6b3072e053e0126581aba164abbfd029d..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/page_action_controller.h
+++ /dev/null
@@ -1,44 +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.
-
-#ifndef CHROME_BROWSER_EXTENSIONS_PAGE_ACTION_CONTROLLER_H_
-#define CHROME_BROWSER_EXTENSIONS_PAGE_ACTION_CONTROLLER_H_
-
-#include "base/macros.h"
-#include "chrome/browser/extensions/location_bar_controller.h"
-
-namespace content {
-class BrowserContext;
-class WebContents;
-}
-
-namespace extensions {
-class Extension;
-
-// A LocationBarControllerProvider which populates the location bar with icons
-// based on the page_action extension API.
-// TODO(rdevlin.cronin): This isn't really a controller.
-class PageActionController : public LocationBarController::ActionProvider {
- public:
- explicit PageActionController(content::WebContents* web_contents);
- virtual ~PageActionController();
-
- // LocationBarController::Provider implementation.
- virtual ExtensionAction* GetActionForExtension(const Extension* extension)
- OVERRIDE;
- virtual void OnNavigated() OVERRIDE;
-
- private:
- // The associated WebContents.
- content::WebContents* web_contents_;
-
- // The associated browser context.
- content::BrowserContext* browser_context_;
-
- DISALLOW_COPY_AND_ASSIGN(PageActionController);
-};
-
-} // namespace extensions
-
-#endif // CHROME_BROWSER_EXTENSIONS_PAGE_ACTION_CONTROLLER_H_

Powered by Google App Engine
This is Rietveld 408576698