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

Unified Diff: chrome/browser/chrome_browser_main_linux.cc

Issue 18967002: Small cleanup for ChromeBrowserMain: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 5 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_linux.cc
===================================================================
--- chrome/browser/chrome_browser_main_linux.cc (revision 210624)
+++ chrome/browser/chrome_browser_main_linux.cc (working copy)
@@ -16,6 +16,8 @@
#include "base/linux_util.h"
#include "base/prefs/pref_service.h"
#include "chrome/app/breakpad_linux.h"
+#include "chrome/browser/browser_process.h"
+#include "chrome/browser/metrics/metrics_service.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/env_vars.h"
#include "chrome/common/pref_names.h"
@@ -133,6 +135,17 @@
ChromeBrowserMainPartsPosix::PreProfileInit();
}
+void ChromeBrowserMainPartsLinux::PostProfileInit() {
+ ChromeBrowserMainPartsPosix::PostProfileInit();
+
+#if defined(USE_LINUX_BREAKPAD)
+ g_browser_process->metrics_service()->RecordBreakpadRegistration(
+ IsCrashReporterEnabled());
+#else
+ g_browser_process->metrics_service()->RecordBreakpadRegistration(false);
petarj 2013/07/11 23:31:04 You can not use g_browser_process variable here, s
jam 2013/07/12 00:06:05 derat has fixed this
+#endif
Nico 2013/07/10 17:50:52 (and this)
+}
+
void ChromeBrowserMainPartsLinux::PostMainMessageLoopRun() {
ChromeBrowserMainPartsPosix::PostMainMessageLoopRun();

Powered by Google App Engine
This is Rietveld 408576698