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

Side by Side Diff: chrome/browser/chromeos/system/system_clock.cc

Issue 1870793002: Convert //chrome/browser/chromeos from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/system/system_clock.h" 5 #include "chrome/browser/chromeos/system/system_clock.h"
6 6
7 #include <memory>
8
7 #include "base/logging.h" 9 #include "base/logging.h"
8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/chrome_notification_types.h" 10 #include "chrome/browser/chrome_notification_types.h"
10 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h" 11 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h"
11 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos_fact ory.h" 12 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos_fact ory.h"
12 #include "chrome/browser/chromeos/profiles/profile_helper.h" 13 #include "chrome/browser/chromeos/profiles/profile_helper.h"
13 #include "chrome/browser/chromeos/settings/cros_settings.h" 14 #include "chrome/browser/chromeos/settings/cros_settings.h"
14 #include "chrome/browser/chromeos/system/system_clock_observer.h" 15 #include "chrome/browser/chromeos/system/system_clock_observer.h"
15 #include "chrome/browser/profiles/profile.h" 16 #include "chrome/browser/profiles/profile.h"
16 #include "chrome/browser/profiles/profile_manager.h" 17 #include "chrome/browser/profiles/profile_manager.h"
17 #include "chrome/common/pref_names.h" 18 #include "chrome/common/pref_names.h"
18 #include "chromeos/login/login_state.h" 19 #include "chromeos/login/login_state.h"
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 // This also works for enterprise-managed devices because they never have 211 // This also works for enterprise-managed devices because they never have
211 // a local owner. 212 // a local owner.
212 if (user_manager::UserManager::Get()->IsCurrentUserOwner()) 213 if (user_manager::UserManager::Get()->IsCurrentUserOwner())
213 SetShouldUse24HourClock(ShouldUse24HourClock()); 214 SetShouldUse24HourClock(ShouldUse24HourClock());
214 FOR_EACH_OBSERVER(SystemClockObserver, observer_list_, 215 FOR_EACH_OBSERVER(SystemClockObserver, observer_list_,
215 OnSystemClockChanged(this)); 216 OnSystemClockChanged(this));
216 } 217 }
217 218
218 } // namespace system 219 } // namespace system
219 } // namespace chromeos 220 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/system/system_clock.h ('k') | chrome/browser/chromeos/system/timezone_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698