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

Unified Diff: chrome/browser/resources/ntp4/apps_page.js

Issue 7792027: ntp4: launchAppAfterEnable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698