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

Side by Side Diff: chrome/browser/chromeos/login/session/login_oobe_session_manager_delegate.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/session/login_oobe_session_manager_deleg ate.h" 5 #include "chrome/browser/chromeos/login/session/login_oobe_session_manager_deleg ate.h"
6 6
7 #include "base/prefs/pref_service.h"
8 #include "chrome/browser/browser_process.h" 7 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/browser_process_platform_part_chromeos.h" 8 #include "chrome/browser/browser_process_platform_part_chromeos.h"
10 #include "chrome/browser/chromeos/login/login_wizard.h" 9 #include "chrome/browser/chromeos/login/login_wizard.h"
11 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" 10 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h"
12 #include "chrome/common/pref_names.h" 11 #include "chrome/common/pref_names.h"
12 #include "components/prefs/pref_service.h"
13 13
14 namespace chromeos { 14 namespace chromeos {
15 15
16 LoginOobeSessionManagerDelegate::LoginOobeSessionManagerDelegate() { 16 LoginOobeSessionManagerDelegate::LoginOobeSessionManagerDelegate() {
17 } 17 }
18 18
19 LoginOobeSessionManagerDelegate::~LoginOobeSessionManagerDelegate() { 19 LoginOobeSessionManagerDelegate::~LoginOobeSessionManagerDelegate() {
20 } 20 }
21 21
22 void LoginOobeSessionManagerDelegate::Start() { 22 void LoginOobeSessionManagerDelegate::Start() {
23 // State will be defined once out-of-box/login branching is complete. 23 // State will be defined once out-of-box/login branching is complete.
24 ShowLoginWizard(std::string()); 24 ShowLoginWizard(std::string());
25 25
26 // Reset reboot after update flag when login screen is shown. 26 // Reset reboot after update flag when login screen is shown.
27 policy::BrowserPolicyConnectorChromeOS* connector = 27 policy::BrowserPolicyConnectorChromeOS* connector =
28 g_browser_process->platform_part()->browser_policy_connector_chromeos(); 28 g_browser_process->platform_part()->browser_policy_connector_chromeos();
29 if (!connector->IsEnterpriseManaged()) { 29 if (!connector->IsEnterpriseManaged()) {
30 PrefService* local_state = g_browser_process->local_state(); 30 PrefService* local_state = g_browser_process->local_state();
31 local_state->ClearPref(prefs::kRebootAfterUpdate); 31 local_state->ClearPref(prefs::kRebootAfterUpdate);
32 } 32 }
33 } 33 }
34 34
35 } // namespace chromeos 35 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698