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 9a98e55f8c0951988246cbb865beff34e25a78a5..c37d34c1578ab0a90e2e575f99280aa31451db09 100644 |
--- a/chrome/browser/ui/extensions/application_launch.cc |
+++ b/chrome/browser/ui/extensions/application_launch.cc |
@@ -299,15 +299,18 @@ |
const Extension* extension = GetExtension(params); |
if (!extension) |
return NULL; |
+ Profile* profile = params.profile; |
WebContents* tab = NULL; |
- ExtensionPrefs* prefs = ExtensionPrefs::Get(params.profile); |
+ ExtensionPrefs* prefs = ExtensionPrefs::Get(profile); |
prefs->SetActiveBit(extension->id(), true); |
if (CanLaunchViaEvent(extension)) { |
- apps::LaunchPlatformAppWithCommandLine( |
- params.profile, extension, params.command_line, |
- params.current_directory, params.source, params.play_store_status); |
+ apps::LaunchPlatformAppWithCommandLine(profile, |
+ extension, |
+ params.command_line, |
+ params.current_directory, |
+ params.source); |
return NULL; |
} |
@@ -323,7 +326,7 @@ |
// 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(params.profile); |
+ SiteEngagementService* service = SiteEngagementService::Get(profile); |
if (service) |
service->SetLastShortcutLaunchTime(url); |
} |