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

Unified Diff: chrome/browser/background/background_mode_manager.cc

Issue 2773973002: Add Startup.BrowserView.FirstPaint / .CompositingEnded histograms. (Closed)
Patch Set: Use more correct place to report timings in Cocoa, fix review remarks. Created 3 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
Index: chrome/browser/background/background_mode_manager.cc
diff --git a/chrome/browser/background/background_mode_manager.cc b/chrome/browser/background/background_mode_manager.cc
index 56524fb60a19144150520ce95f584c55c3c07e20..096064f033b1e7905c595ed9e4cfb814a4b1e538 100644
--- a/chrome/browser/background/background_mode_manager.cc
+++ b/chrome/browser/background/background_mode_manager.cc
@@ -57,6 +57,7 @@
#include "chrome/grit/generated_resources.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/pref_service.h"
+#include "components/startup_metric_utils/browser/startup_metric_utils.h"
#include "content/public/browser/notification_service.h"
#include "extensions/browser/extension_system.h"
#include "extensions/common/constants.h"
@@ -717,6 +718,8 @@ void BackgroundModeManager::StartBackgroundMode() {
if (in_background_mode_)
return;
+ startup_metric_utils::SetBackgroundModeEnabled();
sky 2017/04/11 17:13:36 How come you don't need a matching End?
themblsha 2017/04/12 17:18:28 The intent is to set this once per startup, as it
+
// Mark ourselves as running in background mode.
in_background_mode_ = true;
« no previous file with comments | « no previous file | chrome/browser/chrome_browser_main.cc » ('j') | chrome/browser/metrics/startup_metrics_browsertest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698