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

Unified Diff: chrome/browser/extensions/api/font_settings/font_settings_api.h

Issue 1236493004: Final batch adding real histogram values for extension events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: android compile Created 5 years, 5 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
Index: chrome/browser/extensions/api/font_settings/font_settings_api.h
diff --git a/chrome/browser/extensions/api/font_settings/font_settings_api.h b/chrome/browser/extensions/api/font_settings/font_settings_api.h
index 8d506fe0eddd5194add0b0a6a68fa3d765d8dfc8..77f3f38362412e9cdf43a1026379c033854c63dc 100644
--- a/chrome/browser/extensions/api/font_settings/font_settings_api.h
+++ b/chrome/browser/extensions/api/font_settings/font_settings_api.h
@@ -16,6 +16,7 @@
#include "chrome/browser/extensions/chrome_extension_function.h"
#include "extensions/browser/browser_context_keyed_api_factory.h"
#include "extensions/browser/event_router.h"
+#include "extensions/browser/extension_event_histogram_value.h"
class Profile;
@@ -40,6 +41,7 @@ class FontSettingsEventRouter {
// event |event_name| to extensions. A JavaScript object is passed to the
// extension event function with the new value of the pref in property |key|.
void AddPrefToObserve(const char* pref_name,
+ events::HistogramValue histogram_value,
const char* event_name,
const char* key);
@@ -58,7 +60,8 @@ class FontSettingsEventRouter {
// value of the setting is the value of browser pref |pref_name|. This value
// is passed in the JavaScript object argument to the extension event function
// under the key |key|.
- void OnFontPrefChanged(const std::string& event_name,
+ void OnFontPrefChanged(events::HistogramValue histogram_value,
+ const std::string& event_name,
const std::string& key,
const std::string& pref_name);

Powered by Google App Engine
This is Rietveld 408576698