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

Unified Diff: chrome/browser/extensions/extension_management_api.cc

Issue 10031052: Excluding AppLaunchHandler on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced Created 8 years, 8 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 | chrome/browser/ui/webui/ntp/new_tab_ui.cc » ('j') | chrome/browser/ui/webui/ntp/new_tab_ui.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_management_api.cc
diff --git a/chrome/browser/extensions/extension_management_api.cc b/chrome/browser/extensions/extension_management_api.cc
index 0d635ed8a501ea85ee0c28e74df904da81631b29..fc74f1aede3e5a24ac40a3d8d83f17a753981eab 100644
--- a/chrome/browser/extensions/extension_management_api.cc
+++ b/chrome/browser/extensions/extension_management_api.cc
@@ -20,7 +20,6 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/webui/extensions/extension_icon_source.h"
-#include "chrome/browser/ui/webui/ntp/app_launcher_handler.h"
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/chrome_utility_messages.h"
#include "chrome/common/extensions/extension.h"
@@ -33,6 +32,10 @@
#include "content/public/browser/utility_process_host.h"
#include "content/public/browser/utility_process_host_client.h"
+#if !defined(OS_ANDROID)
+#include "chrome/browser/ui/webui/ntp/app_launcher_handler.h"
+#endif
+
using base::IntToString;
using content::BrowserThread;
using content::UtilityProcessHost;
@@ -338,8 +341,10 @@ bool LaunchAppFunction::RunImpl() {
extension, ExtensionPrefs::LAUNCH_DEFAULT);
Browser::OpenApplication(profile(), extension, launch_container, GURL(),
NEW_FOREGROUND_TAB);
+#if !defined(OS_ANDROID)
AppLauncherHandler::RecordAppLaunchType(
extension_misc::APP_LAUNCH_EXTENSION_API);
+#endif
return true;
}
« no previous file with comments | « no previous file | chrome/browser/ui/webui/ntp/new_tab_ui.cc » ('j') | chrome/browser/ui/webui/ntp/new_tab_ui.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698