| Index: extensions/browser/ui/extension_chooser_dialog.cc
|
| diff --git a/extensions/browser/ui/extension_chooser_dialog.cc b/extensions/browser/ui/extension_chooser_dialog.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c949bbd09017351497c25c099f8fcce4d3de7d07
|
| --- /dev/null
|
| +++ b/extensions/browser/ui/extension_chooser_dialog.cc
|
| @@ -0,0 +1,28 @@
|
| +// Copyright 2016 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 "extensions/browser/ui/extension_chooser_dialog.h"
|
| +
|
| +#include "content/public/browser/web_contents.h"
|
| +#include "extensions/browser/api/runtime/runtime_api.h"
|
| +
|
| +namespace extensions {
|
| +
|
| +ExtensionChooserDialog::ExtensionChooserDialog(
|
| + content::WebContents* web_contents)
|
| + : web_contents_(web_contents) {}
|
| +
|
| +ExtensionChooserDialog::~ExtensionChooserDialog() {}
|
| +
|
| +void ExtensionChooserDialog::OpenHelpCenterUrl() const {
|
| + content::BrowserContext* browser_context = web_contents_->GetBrowserContext();
|
| + RuntimeAPI::GetFactoryInstance()
|
| + ->Get(browser_context)
|
| + ->OpenURL(GetHelpCenterUrl());
|
| +}
|
| +
|
| +void ExtensionChooserDialog::ShowDialog(
|
| + ChooserController* chooser_controller) const {}
|
| +
|
| +} // namespace extensions
|
|
|