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

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

Issue 7121017: Record omnibox app launches in AppLaunch histogram. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 6 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/common/extensions/extension_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_omnibox_api.cc
===================================================================
--- chrome/browser/extensions/extension_omnibox_api.cc (revision 88118)
+++ chrome/browser/extensions/extension_omnibox_api.cc (working copy)
@@ -6,6 +6,7 @@
#include "base/json/json_writer.h"
#include "base/lazy_instance.h"
+#include "base/metrics/histogram.h"
#include "base/string_util.h"
#include "base/utf_string_conversions.h"
#include "base/values.h"
@@ -14,6 +15,7 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/search_engines/template_url.h"
#include "chrome/browser/ui/browser.h"
+#include "chrome/common/extensions/extension_constants.h"
#include "content/common/notification_service.h"
namespace events {
@@ -277,6 +279,10 @@
if (!extension)
return;
+ UMA_HISTOGRAM_ENUMERATION(extension_misc::kAppLaunchHistogram,
+ extension_misc::APP_LAUNCH_OMNIBOX_APP,
+ extension_misc::APP_LAUNCH_BUCKET_BOUNDARY);
+
// Look at the preferences to find the right launch container. If no
// preference is set, launch as a regular tab.
extension_misc::LaunchContainer launch_container =
« no previous file with comments | « no previous file | chrome/common/extensions/extension_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698