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

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

Issue 2510803003: Pass RapporService to content/browser/ (Closed)
Patch Set: Add a test for the current url API 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 46bba5782522812e6f11d6a03d064eabafddade4..4355d98a1c734e250cfb3fe5ea84113c00107df5 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -2515,6 +2515,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