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

Unified Diff: chrome/browser/ui/views/ash/extension_utils.cc

Issue 10332071: Pass command line arguments onto platform apps which provide the right intent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Windows tests fixed Created 8 years, 7 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/views/ash/extension_utils.cc
diff --git a/chrome/browser/ui/views/ash/extension_utils.cc b/chrome/browser/ui/views/ash/extension_utils.cc
index 586d11ef5c646d34e8fec07b97cec90e7d868e19..b0f6c6997cc29bcd089989a3b90dad11177dd3d3 100644
--- a/chrome/browser/ui/views/ash/extension_utils.cc
+++ b/chrome/browser/ui/views/ash/extension_utils.cc
@@ -32,12 +32,12 @@ void OpenExtension(Profile* profile,
if (disposition == NEW_FOREGROUND_TAB || disposition == NEW_BACKGROUND_TAB) {
// Opens in a tab.
application_launch::OpenApplication(
- profile, extension, extension_misc::LAUNCH_TAB, url, disposition);
+ profile, extension, extension_misc::LAUNCH_TAB, url, disposition, NULL);
} else if (disposition == NEW_WINDOW) {
// Force a new window open.
application_launch::OpenApplication(
profile, extension, extension_misc::LAUNCH_WINDOW, url,
- disposition);
+ disposition, NULL);
} else {
// Look at preference to find the right launch container. If no preference
// is set, launch as a regular tab.
@@ -47,7 +47,7 @@ void OpenExtension(Profile* profile,
application_launch::OpenApplication(
profile, extension, launch_container, GURL(url),
- NEW_FOREGROUND_TAB);
+ NEW_FOREGROUND_TAB, NULL);
}
}
« no previous file with comments | « chrome/browser/ui/startup/startup_browser_creator_impl.cc ('k') | chrome/browser/ui/webui/ntp/app_launcher_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698