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

Unified Diff: chrome/browser/ui/extensions/application_launch.cc

Issue 722703002: Make "source" a required argument of AppLaunchParams and fill in the argument in all call points. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/extensions/application_launch.cc
diff --git a/chrome/browser/ui/extensions/application_launch.cc b/chrome/browser/ui/extensions/application_launch.cc
index af6d0388c4d92c7723e76aa700b1387518746be4..fb6799d650a4211ac5ee1f907162b47df22caa87 100644
--- a/chrome/browser/ui/extensions/application_launch.cc
+++ b/chrome/browser/ui/extensions/application_launch.cc
@@ -24,6 +24,7 @@
#include "extensions/browser/extension_prefs.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/browser/extension_system.h"
+#include "extensions/common/constants.h"
#include "extensions/common/extension.h"
#include "extensions/common/features/feature.h"
#include "extensions/common/features/feature_provider.h"
@@ -220,11 +221,10 @@ void OpenApplicationWithReenablePrompt(const AppLaunchParams& params) {
WebContents* OpenAppShortcutWindow(Profile* profile,
const GURL& url) {
- AppLaunchParams launch_params(
- profile,
- NULL, // this is a URL app. No extension.
- extensions::LAUNCH_CONTAINER_WINDOW,
- NEW_WINDOW);
+ AppLaunchParams launch_params(profile,
+ NULL, // this is a URL app. No extension.
+ extensions::LAUNCH_CONTAINER_WINDOW, NEW_WINDOW,
+ extensions::SOURCE_COMMAND_LINE);
launch_params.override_url = url;
WebContents* tab = OpenWebAppWindow(launch_params, url);
« no previous file with comments | « chrome/browser/ui/extensions/app_launch_params.cc ('k') | chrome/browser/ui/startup/startup_browser_creator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698