OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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 "extensions/browser/ui/extension_chooser_dialog.h" |
| 6 |
| 7 #include "content/public/browser/web_contents.h" |
| 8 #include "extensions/browser/api/runtime/runtime_api.h" |
| 9 |
| 10 namespace extensions { |
| 11 |
| 12 ExtensionChooserDialog::ExtensionChooserDialog( |
| 13 content::WebContents* web_contents) |
| 14 : web_contents_(web_contents) {} |
| 15 |
| 16 ExtensionChooserDialog::~ExtensionChooserDialog() {} |
| 17 |
| 18 void ExtensionChooserDialog::OpenHelpCenterUrl() const { |
| 19 content::BrowserContext* browser_context = web_contents_->GetBrowserContext(); |
| 20 RuntimeAPI::GetFactoryInstance() |
| 21 ->Get(browser_context) |
| 22 ->OpenURL(GetHelpCenterUrl()); |
| 23 } |
| 24 |
| 25 void ExtensionChooserDialog::ShowDialog( |
| 26 ChooserController* chooser_controller) const {} |
| 27 |
| 28 } // namespace extensions |
OLD | NEW |