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

Side by Side Diff: chrome/browser/chromeos/arc/intent_helper/arc_settings_service.cc

Issue 2577103002: arc: Rename methods in ArcSessionManager::Observer. (Closed)
Patch Set: OnArcShutdownBridge -> OnArcBridgeShutdown Created 4 years 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/arc/intent_helper/arc_settings_service.h" 5 #include "chrome/browser/chromeos/arc/intent_helper/arc_settings_service.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/gtest_prod_util.h" 9 #include "base/gtest_prod_util.h"
10 #include "base/json/json_writer.h" 10 #include "base/json/json_writer.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 void OnPrefChanged(const std::string& pref_name) const; 95 void OnPrefChanged(const std::string& pref_name) const;
96 96
97 // TimezoneSettings::Observer: 97 // TimezoneSettings::Observer:
98 void TimezoneChanged(const icu::TimeZone& timezone) override; 98 void TimezoneChanged(const icu::TimeZone& timezone) override;
99 99
100 // BluetoothAdapter::Observer: 100 // BluetoothAdapter::Observer:
101 void AdapterPoweredChanged(device::BluetoothAdapter* adapter, 101 void AdapterPoweredChanged(device::BluetoothAdapter* adapter,
102 bool powered) override; 102 bool powered) override;
103 103
104 // ArcSessionManager::Observer: 104 // ArcSessionManager::Observer:
105 void OnInitialStart() override; 105 void OnArcInitialStart() override;
106 106
107 // NetworkStateHandlerObserver: 107 // NetworkStateHandlerObserver:
108 void DefaultNetworkChanged(const chromeos::NetworkState* network) override; 108 void DefaultNetworkChanged(const chromeos::NetworkState* network) override;
109 109
110 private: 110 private:
111 // Registers to observe changes for Chrome settings we care about. 111 // Registers to observe changes for Chrome settings we care about.
112 void StartObservingSettingsChanges(); 112 void StartObservingSettingsChanges();
113 113
114 // Stops listening for Chrome settings changes. 114 // Stops listening for Chrome settings changes.
115 void StopObservingSettingsChanges(); 115 void StopObservingSettingsChanges();
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 217
218 void ArcSettingsServiceImpl::OnBluetoothAdapterInitialized( 218 void ArcSettingsServiceImpl::OnBluetoothAdapterInitialized(
219 scoped_refptr<device::BluetoothAdapter> adapter) { 219 scoped_refptr<device::BluetoothAdapter> adapter) {
220 DCHECK(adapter); 220 DCHECK(adapter);
221 bluetooth_adapter_ = adapter; 221 bluetooth_adapter_ = adapter;
222 bluetooth_adapter_->AddObserver(this); 222 bluetooth_adapter_->AddObserver(this);
223 223
224 AdapterPoweredChanged(adapter.get(), adapter->IsPowered()); 224 AdapterPoweredChanged(adapter.get(), adapter->IsPowered());
225 } 225 }
226 226
227 void ArcSettingsServiceImpl::OnInitialStart() { 227 void ArcSettingsServiceImpl::OnArcInitialStart() {
228 SyncInitialSettings(); 228 SyncInitialSettings();
229 } 229 }
230 230
231 void ArcSettingsServiceImpl::SyncRuntimeSettings() const { 231 void ArcSettingsServiceImpl::SyncRuntimeSettings() const {
232 SyncFontSize(); 232 SyncFontSize();
233 SyncLocale(); 233 SyncLocale();
234 SyncProxySettings(); 234 SyncProxySettings();
235 SyncReportingConsent(); 235 SyncReportingConsent();
236 SyncSpokenFeedbackEnabled(); 236 SyncSpokenFeedbackEnabled();
237 SyncTimeZone(); 237 SyncTimeZone();
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 504
505 void ArcSettingsService::OnInstanceReady() { 505 void ArcSettingsService::OnInstanceReady() {
506 impl_.reset(new ArcSettingsServiceImpl(arc_bridge_service())); 506 impl_.reset(new ArcSettingsServiceImpl(arc_bridge_service()));
507 } 507 }
508 508
509 void ArcSettingsService::OnInstanceClosed() { 509 void ArcSettingsService::OnInstanceClosed() {
510 impl_.reset(); 510 impl_.reset();
511 } 511 }
512 512
513 } // namespace arc 513 } // namespace arc
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/arc/arc_session_manager_browsertest.cc ('k') | chrome/browser/ui/app_list/arc/arc_app_list_prefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698