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

Side by Side 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, 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/extensions/page_action_controller.h"
6
7 #include "chrome/browser/extensions/extension_action_manager.h"
8 #include "content/public/browser/web_contents.h"
9
10 namespace extensions {
11
12 PageActionController::PageActionController(content::WebContents* web_contents)
13 : web_contents_(web_contents),
14 browser_context_(web_contents_->GetBrowserContext()) {
15 }
16
17 PageActionController::~PageActionController() {
18 }
19
20 ExtensionAction* PageActionController::GetActionForExtension(
21 const Extension* extension) {
22 return ExtensionActionManager::Get(browser_context_)->GetPageAction(
23 *extension);
24 }
25
26 void PageActionController::OnNavigated() {
27 // Clearing extension action values is handled in TabHelper, so nothing to
28 // do here.
29 }
30
31 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698