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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 253203002: Log operator code histogram on new metric log (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@api_move
Patch Set: sync'ed to head, added test. Created 6 years, 7 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/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index d84585d1cdef1629afad49d2ab019c8f900cff10..4c8411dc271194c125d3a6e5d02ff4ad711d6ca8 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -42,6 +42,7 @@
#include "chrome/browser/browser_process_platform_part.h"
#include "chrome/browser/browser_shutdown.h"
#include "chrome/browser/chrome_browser_main_extra_parts.h"
+#include "chrome/browser/chrome_browser_metrics_log_observer.h"
#include "chrome/browser/component_updater/cld_component_installer.h"
#include "chrome/browser/component_updater/component_updater_service.h"
#include "chrome/browser/component_updater/flash_component_installer.h"
@@ -559,9 +560,11 @@ void ChromeBrowserMainParts::SetupMetricsAndFieldTrials() {
MetricsLog::set_version_extension("-64");
#endif // defined(ARCH_CPU_64_BITS)
+ MetricsService* metrics = browser_process_->metrics_service();
+ // Create the metrics log observer.
+ browser_metrics_log_observer_.reset(new ChromeBrowserMetricsLogObserver());
Ilya Sherman 2014/05/07 01:03:16 I am not an owner for this code, but modifying chr
bolian 2014/05/07 02:20:26 This is not resolved yet. It is here to make sure
bolian 2014/05/07 18:11:44 I explored this more. //net still does not look li
Ilya Sherman 2014/05/07 23:57:40 I still think this is unlikely to be the correct l
bolian 2014/05/08 00:54:51 I keep remind myself that MetricsServiceObserver h
Ilya Sherman 2014/05/08 01:10:11 Perhaps there was some miscommunication. I don't
bolian 2014/05/08 01:29:58 We have abstracted it to be an observer to Metrics
Ilya Sherman 2014/05/08 03:09:40 Hmm, I think I understand your concern: You don't
// Initialize FieldTrialList to support FieldTrials that use one-time
// randomization.
- MetricsService* metrics = browser_process_->metrics_service();
field_trial_list_.reset(
new base::FieldTrialList(metrics->CreateEntropyProvider().release()));

Powered by Google App Engine
This is Rietveld 408576698