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

Unified Diff: chrome/browser/ui/app_list/app_list_controller_delegate_impl.cc

Issue 644863002: Introduce OpenURL to AppListControllerDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 years, 2 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/ui/app_list/app_list_controller_delegate_impl.cc
diff --git a/chrome/browser/ui/app_list/app_list_controller_delegate_impl.cc b/chrome/browser/ui/app_list/app_list_controller_delegate_impl.cc
index 3373b4cc6be9b39197b39e81efb97c7e6a07bb1e..0dfe72750350eca7d638481acb843e00379d3837 100644
--- a/chrome/browser/ui/app_list/app_list_controller_delegate_impl.cc
+++ b/chrome/browser/ui/app_list/app_list_controller_delegate_impl.cc
@@ -10,6 +10,7 @@
#include "chrome/browser/ui/app_list/app_list_service_impl.h"
#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/browser_dialogs.h"
+#include "chrome/browser/ui/browser_navigator.h"
#include "chrome/browser/ui/extensions/application_launch.h"
#include "chrome/common/extensions/manifest_handlers/app_launch_info.h"
#include "extensions/browser/extension_system.h"
@@ -86,6 +87,15 @@ void AppListControllerDelegateImpl::CreateNewWindow(Profile* profile,
chrome::NewEmptyWindow(window_profile, chrome::HOST_DESKTOP_TYPE_NATIVE);
}
+void AppListControllerDelegateImpl::OpenURL(Profile* profile,
+ const GURL& url,
+ ui::PageTransition transition,
+ WindowOpenDisposition disposition) {
+ chrome::NavigateParams params(profile, url, transition);
+ params.disposition = disposition;
+ chrome::Navigate(&params);
+}
+
void AppListControllerDelegateImpl::ActivateApp(
Profile* profile,
const extensions::Extension* extension,

Powered by Google App Engine
This is Rietveld 408576698