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

Unified Diff: chrome/browser/chromeos/first_run/first_run.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/chromeos/first_run/first_run.cc
diff --git a/chrome/browser/chromeos/first_run/first_run.cc b/chrome/browser/chromeos/first_run/first_run.cc
index b9c7947b998402ffc9f39a5619928eaf2a04e391..b4af283aed4fdfd22b2869b790500c874ac8a37b 100644
--- a/chrome/browser/chromeos/first_run/first_run.cc
+++ b/chrome/browser/chromeos/first_run/first_run.cc
@@ -11,6 +11,7 @@
#include "chrome/browser/chromeos/profiles/profile_helper.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/profiles/profile_manager.h"
+#include "chrome/browser/ui/extensions/app_launch_params.h"
#include "chrome/browser/ui/extensions/application_launch.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/extensions/extension_constants.h"
@@ -40,8 +41,9 @@ void LaunchDialogForProfile(Profile* profile) {
if (!extension)
return;
- OpenApplication(AppLaunchParams(
- profile, extension, extensions::LAUNCH_CONTAINER_WINDOW, NEW_WINDOW));
+ OpenApplication(
+ AppLaunchParams(profile, extension, extensions::LAUNCH_CONTAINER_WINDOW,
+ NEW_WINDOW, extensions::SOURCE_CHROME_INTERNAL));
profile->GetPrefs()->SetBoolean(prefs::kFirstRunTutorialShown, true);
}

Powered by Google App Engine
This is Rietveld 408576698