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

Unified Diff: chrome/browser/ui/cocoa/first_run_dialog.mm

Issue 2215993002: Allow changing metrics reporting state without callback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/ui/cocoa/first_run_dialog.mm
diff --git a/chrome/browser/ui/cocoa/first_run_dialog.mm b/chrome/browser/ui/cocoa/first_run_dialog.mm
index 396fda51832c56499f590d165e58e42724f463b3..1844bfc3378ae19863d7a901ba58715178df85d5 100644
--- a/chrome/browser/ui/cocoa/first_run_dialog.mm
+++ b/chrome/browser/ui/cocoa/first_run_dialog.mm
@@ -75,8 +75,7 @@ bool ShowFirstRun(Profile* profile) {
// If the dialog asked the user to opt-in for stats and crash reporting,
// record the decision and enable the crash reporter if appropriate.
bool consent_given = [dialog.get() statsEnabled];
- InitiateMetricsReportingChange(consent_given,
- OnMetricsReportingCallbackType());
+ ChangeMetricsReportingState(consent_given);
// If selected set as default browser.
BOOL make_default_browser = [dialog.get() makeDefaultBrowser];

Powered by Google App Engine
This is Rietveld 408576698