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

Unified Diff: chrome/browser/first_run_gtk.cc

Issue 115808: Respect Linux user prefs with regards to crash reporting. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: with nits fixed, also some minor fixes to breakpad_linux.cc Created 11 years, 7 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
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/google_update_settings_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/first_run_gtk.cc
===================================================================
--- chrome/browser/first_run_gtk.cc (revision 17070)
+++ chrome/browser/first_run_gtk.cc (working copy)
@@ -4,10 +4,12 @@
#include "chrome/browser/first_run.h"
+#include "chrome/app/breakpad_linux.h"
// We need to reach through the browser process to tweak the metrics flag.
#include "chrome/browser/browser_process.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
+#include "chrome/installer/util/google_update_settings.h"
#include "base/message_loop.h"
@@ -94,11 +96,15 @@
MessageLoop::current()->Run();
// End of above TODO.
- if (response == GTK_RESPONSE_ACCEPT &&
- gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(check))) {
- // They opted in.
- g_browser_process->local_state()->SetBoolean(
- prefs::kMetricsReportingEnabled, true);
+ if (response == GTK_RESPONSE_ACCEPT) {
+ if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(check))) {
+ // They opted in.
+ if (GoogleUpdateSettings::SetCollectStatsConsent(true)) {
+ InitCrashReporter();
+ }
+ } else {
+ GoogleUpdateSettings::SetCollectStatsConsent(false);
+ }
}
gtk_widget_destroy(dialog);
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/google_update_settings_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698