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

Side by Side Diff: chrome/browser/chromeos/input_method/input_method_syncer.h

Issue 796693005: Update {virtual,override,final} to follow C++11 style in chrome/browser/chromeos/input_method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_SYNCER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_SYNCER_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_SYNCER_H_ 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_SYNCER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 15 matching lines...) Expand all
26 // Changes to local preferences are handed up to the sync server. But Chrome OS 26 // Changes to local preferences are handed up to the sync server. But Chrome OS
27 // should not locally apply the corresponding preferences from the sync server, 27 // should not locally apply the corresponding preferences from the sync server,
28 // except once: when the user first logs into the device. 28 // except once: when the user first logs into the device.
29 // Thus, the user's most recent changes to language and input method preferences 29 // Thus, the user's most recent changes to language and input method preferences
30 // will be brought down when signing in to a new device but not in future syncs. 30 // will be brought down when signing in to a new device but not in future syncs.
31 class InputMethodSyncer : public PrefServiceSyncableObserver { 31 class InputMethodSyncer : public PrefServiceSyncableObserver {
32 public: 32 public:
33 InputMethodSyncer( 33 InputMethodSyncer(
34 PrefServiceSyncable* prefs, 34 PrefServiceSyncable* prefs,
35 scoped_refptr<input_method::InputMethodManager::State> ime_state); 35 scoped_refptr<input_method::InputMethodManager::State> ime_state);
36 virtual ~InputMethodSyncer(); 36 ~InputMethodSyncer() override;
37 37
38 // Registers the syncable input method prefs. 38 // Registers the syncable input method prefs.
39 static void RegisterProfilePrefs( 39 static void RegisterProfilePrefs(
40 user_prefs::PrefRegistrySyncable* registry); 40 user_prefs::PrefRegistrySyncable* registry);
41 41
42 // Must be called after InputMethodSyncer is created. 42 // Must be called after InputMethodSyncer is created.
43 void Initialize(); 43 void Initialize();
44 44
45 private: 45 private:
46 // Adds the input methods from the syncable prefs to the device-local prefs. 46 // Adds the input methods from the syncable prefs to the device-local prefs.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // Used to ignore PrefChanged events while InputMethodManager is merging. 83 // Used to ignore PrefChanged events while InputMethodManager is merging.
84 bool merging_; 84 bool merging_;
85 85
86 base::WeakPtrFactory<InputMethodSyncer> weak_factory_; 86 base::WeakPtrFactory<InputMethodSyncer> weak_factory_;
87 }; 87 };
88 88
89 } // namespace input_method 89 } // namespace input_method
90 } // namespace chromeos 90 } // namespace chromeos
91 91
92 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_SYNCER_H_ 92 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_SYNCER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698