| OLD | NEW |
| (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 | |
| OLD | NEW |