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

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

Issue 2272813003: Add ARC++ specific fields to launch data for specific apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 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/extensions/application_launch.cc
diff --git a/chrome/browser/ui/extensions/application_launch.cc b/chrome/browser/ui/extensions/application_launch.cc
index c37d34c1578ab0a90e2e575f99280aa31451db09..9a98e55f8c0951988246cbb865beff34e25a78a5 100644
--- a/chrome/browser/ui/extensions/application_launch.cc
+++ b/chrome/browser/ui/extensions/application_launch.cc
@@ -299,18 +299,15 @@ WebContents* OpenEnabledApplication(const AppLaunchParams& params) {
const Extension* extension = GetExtension(params);
if (!extension)
return NULL;
- Profile* profile = params.profile;
WebContents* tab = NULL;
- ExtensionPrefs* prefs = ExtensionPrefs::Get(profile);
+ ExtensionPrefs* prefs = ExtensionPrefs::Get(params.profile);
prefs->SetActiveBit(extension->id(), true);
if (CanLaunchViaEvent(extension)) {
- apps::LaunchPlatformAppWithCommandLine(profile,
- extension,
- params.command_line,
- params.current_directory,
- params.source);
+ apps::LaunchPlatformAppWithCommandLine(
+ params.profile, extension, params.command_line,
+ params.current_directory, params.source, params.play_store_status);
return NULL;
}
@@ -326,7 +323,7 @@ WebContents* OpenEnabledApplication(const AppLaunchParams& params) {
// Record the launch time in the site engagement service. A recent bookmark
// app launch will provide an engagement boost to the origin.
- SiteEngagementService* service = SiteEngagementService::Get(profile);
+ SiteEngagementService* service = SiteEngagementService::Get(params.profile);
if (service)
service->SetLastShortcutLaunchTime(url);
}

Powered by Google App Engine
This is Rietveld 408576698