Index: chrome/browser/resources/ntp4/apps_page.js |
diff --git a/chrome/browser/resources/ntp4/apps_page.js b/chrome/browser/resources/ntp4/apps_page.js |
index 0a0c7c89537d85cc68d4d15717b337efe8167a35..6abf996307a2cb568e76215a90f3dc31b3dd3a00 100644 |
--- a/chrome/browser/resources/ntp4/apps_page.js |
+++ b/chrome/browser/resources/ntp4/apps_page.js |
@@ -552,8 +552,17 @@ cr.define('ntp4', function() { |
store.setAppsPromoData(data); |
}; |
+ // Launches the specified app using the APP_LAUNCH_NTP_APP_RE_ENABLE |
+ // histogram. This should only be invoked from the AppLauncherHandler. |
+ function launchAppAfterEnable(appId) { |
+ chrome.send('launchApp', [appId, APP_LAUNCH.NTP_APP_RE_ENABLE]); |
+ }; |
+ |
return { |
APP_LAUNCH: APP_LAUNCH, |
AppsPage: AppsPage, |
+ launchAppAfterEnable: launchAppAfterEnable, |
}; |
}); |
+ |
+var launchAppAfterEnable = ntp4.launchAppAfterEnable; |