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

Unified Diff: chrome/browser/ui/browser.cc

Issue 2492793004: Add TimeToScrollUpdateSwapBegin2 in RAPPOR (Closed)
Patch Set: Rebase Created 4 years, 1 month 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/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index b5b54d017c63e1e0fe8dcfe336adeb0b12bf1eaa..edde695816ae5a476e30c95b5e69088734f6eb05 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -2514,6 +2514,12 @@ bool Browser::ShouldHideUIForFullscreen() const {
return window_ && window_->ShouldHideUIForFullscreen();
}
+::rappor::RapporService* Browser::getRapporService() {
+ if (g_browser_process->IsShuttingDown())
+ return nullptr;
+ return g_browser_process->rappor_service();
+}
+
bool Browser::ShouldStartShutdown() const {
return BrowserList::GetInstance()->size() <= 1;
}

Powered by Google App Engine
This is Rietveld 408576698