OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/chromeos/login/wizard_controller.h" | 5 #include "chrome/browser/chromeos/login/wizard_controller.h" |
6 | 6 |
7 #include <signal.h> | 7 #include <signal.h> |
8 #include <stdlib.h> | 8 #include <stdlib.h> |
9 #include <sys/types.h> | 9 #include <sys/types.h> |
10 | 10 |
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
602 | 602 |
603 if (skip_update_enroll_after_eula_) { | 603 if (skip_update_enroll_after_eula_) { |
604 PerformPostEulaActions(); | 604 PerformPostEulaActions(); |
605 ShowAutoEnrollmentCheckScreen(); | 605 ShowAutoEnrollmentCheckScreen(); |
606 } else { | 606 } else { |
607 InitiateOOBEUpdate(); | 607 InitiateOOBEUpdate(); |
608 } | 608 } |
609 } | 609 } |
610 | 610 |
611 void WizardController::InitiateMetricsReportingChangeCallback(bool enabled) { | 611 void WizardController::InitiateMetricsReportingChangeCallback(bool enabled) { |
612 CrosSettings::Get()->SetBoolean(kStatsReportingPref, enabled); | |
Mattias Nissler (ping if slow)
2015/10/20 08:33:32
Why did you remove this? I think this is required
gayane -on leave until 09-2017
2015/10/20 14:55:39
Previously here we set kStatsReportingPref as Init
Mattias Nissler (ping if slow)
2015/10/21 09:53:24
AFAICT, InitiateMetricsReportingChange only update
Alexei Svitkine (slow)
2015/10/21 16:36:53
Can we just guard against this (non-owners of the
gayane -on leave until 09-2017
2015/10/21 17:02:51
Is there any way for users to change the settings
Mattias Nissler (ping if slow)
2015/10/21 19:05:48
The deal with device settings is that they're carr
| |
613 if (!enabled) | 612 if (!enabled) |
614 return; | 613 return; |
615 #if defined(GOOGLE_CHROME_BUILD) | 614 #if defined(GOOGLE_CHROME_BUILD) |
616 if (!content::BrowserThread::PostBlockingPoolTask( | 615 if (!content::BrowserThread::PostBlockingPoolTask( |
617 FROM_HERE, base::Bind(&InitializeCrashReporter))) { | 616 FROM_HERE, base::Bind(&InitializeCrashReporter))) { |
618 LOG(ERROR) << "Failed to start crash reporter initialization."; | 617 LOG(ERROR) << "Failed to start crash reporter initialization."; |
619 } | 618 } |
620 #endif | 619 #endif |
621 } | 620 } |
622 | 621 |
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1317 } | 1316 } |
1318 | 1317 |
1319 EnrollmentScreen* screen = EnrollmentScreen::Get(this); | 1318 EnrollmentScreen* screen = EnrollmentScreen::Get(this); |
1320 screen->SetParameters(effective_config, shark_controller_.get(), | 1319 screen->SetParameters(effective_config, shark_controller_.get(), |
1321 remora_controller_.get()); | 1320 remora_controller_.get()); |
1322 SetStatusAreaVisible(true); | 1321 SetStatusAreaVisible(true); |
1323 SetCurrentScreen(screen); | 1322 SetCurrentScreen(screen); |
1324 } | 1323 } |
1325 | 1324 |
1326 } // namespace chromeos | 1325 } // namespace chromeos |
OLD | NEW |