Index: chrome/browser/ui/webui/ntp/app_launcher_handler.cc |
diff --git a/chrome/browser/ui/webui/ntp/app_launcher_handler.cc b/chrome/browser/ui/webui/ntp/app_launcher_handler.cc |
index e56bcef84335e0768b04962ad2d463f0cd44793b..5ddda864fba98a06962ba4aac0a894c6cf302d8b 100644 |
--- a/chrome/browser/ui/webui/ntp/app_launcher_handler.cc |
+++ b/chrome/browser/ui/webui/ntp/app_launcher_handler.cc |
@@ -27,9 +27,9 @@ |
#include "chrome/browser/prefs/pref_service.h" |
#include "chrome/browser/prefs/scoped_user_pref_update.h" |
#include "chrome/browser/profiles/profile.h" |
-#include "chrome/browser/ui/browser.h" |
#include "chrome/browser/ui/browser_finder.h" |
#include "chrome/browser/ui/browser_window.h" |
+#include "chrome/browser/ui/extensions/application_launch.h" |
#include "chrome/browser/ui/webui/extensions/extension_icon_source.h" |
#include "chrome/browser/ui/webui/ntp/new_tab_ui.h" |
#include "chrome/browser/ui/webui/web_ui_util.h" |
@@ -542,11 +542,11 @@ void AppLauncherHandler::HandleLaunchApp(const ListValue* args) { |
if (disposition == NEW_FOREGROUND_TAB || disposition == NEW_BACKGROUND_TAB) { |
// TODO(jamescook): Proper support for background tabs. |
- Browser::OpenApplication( |
+ ApplicationLaunch::OpenApplication( |
profile, extension, extension_misc::LAUNCH_TAB, GURL(url), disposition); |
} else if (disposition == NEW_WINDOW) { |
// Force a new window open. |
- Browser::OpenApplication( |
+ ApplicationLaunch::OpenApplication( |
profile, extension, extension_misc::LAUNCH_WINDOW, GURL(url), |
disposition); |
} else { |
@@ -563,7 +563,7 @@ void AppLauncherHandler::HandleLaunchApp(const ListValue* args) { |
if (browser) |
old_contents = browser->GetSelectedWebContents(); |
- WebContents* new_contents = Browser::OpenApplication( |
+ WebContents* new_contents = ApplicationLaunch::OpenApplication( |
profile, extension, launch_container, GURL(url), |
old_contents ? CURRENT_TAB : NEW_FOREGROUND_TAB); |