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

Unified Diff: chrome/browser/ui/ash/app_list/app_list_controller_ash.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
« no previous file with comments | « chrome/browser/ui/ash/app_list/app_list_controller_ash.h ('k') | chrome/chrome_tests_unit.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/app_list/app_list_controller_ash.cc
diff --git a/chrome/browser/ui/ash/app_list/app_list_controller_ash.cc b/chrome/browser/ui/ash/app_list/app_list_controller_ash.cc
index 857e41da66dd367bd8cbc89a1061429db5a01ca7..f560d4834a1973ba9a9d6063dbcae711388cec0d 100644
--- a/chrome/browser/ui/ash/app_list/app_list_controller_ash.cc
+++ b/chrome/browser/ui/ash/app_list/app_list_controller_ash.cc
@@ -6,6 +6,7 @@
#include "ash/shell.h"
#include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h"
+#include "chrome/browser/ui/browser_navigator.h"
#include "extensions/common/extension.h"
#include "ui/app_list/views/app_list_view.h"
@@ -86,6 +87,15 @@ void AppListControllerDelegateAsh::CreateNewWindow(Profile* profile,
ChromeLauncherController::instance()->CreateNewWindow();
}
+void AppListControllerDelegateAsh::OpenURL(Profile* profile,
+ const GURL& url,
+ ui::PageTransition transition,
+ WindowOpenDisposition disposition) {
+ chrome::NavigateParams params(profile, url, transition);
+ params.disposition = disposition;
+ chrome::Navigate(&params);
+}
+
void AppListControllerDelegateAsh::ActivateApp(
Profile* profile,
const extensions::Extension* extension,
« no previous file with comments | « chrome/browser/ui/ash/app_list/app_list_controller_ash.h ('k') | chrome/chrome_tests_unit.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698