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; |
} |