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

Side by Side Diff: chrome/browser/chromeos/settings/device_settings_test_helper.cc

Issue 697953002: ObserverList::HasObserver now takes a const pointer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile errors (ChromeOS unit tests). Created 6 years, 1 month 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 (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/settings/device_settings_test_helper.h" 5 #include "chrome/browser/chromeos/settings/device_settings_test_helper.h"
6 6
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "base/threading/sequenced_worker_pool.h" 9 #include "base/threading/sequenced_worker_pool.h"
10 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h" 10 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 void DeviceSettingsTestHelper::Init(dbus::Bus* bus) {} 94 void DeviceSettingsTestHelper::Init(dbus::Bus* bus) {}
95 95
96 void DeviceSettingsTestHelper::SetStubDelegate( 96 void DeviceSettingsTestHelper::SetStubDelegate(
97 SessionManagerClient::StubDelegate* delegate) {} 97 SessionManagerClient::StubDelegate* delegate) {}
98 98
99 void DeviceSettingsTestHelper::AddObserver(Observer* observer) {} 99 void DeviceSettingsTestHelper::AddObserver(Observer* observer) {}
100 100
101 void DeviceSettingsTestHelper::RemoveObserver(Observer* observer) {} 101 void DeviceSettingsTestHelper::RemoveObserver(Observer* observer) {}
102 102
103 bool DeviceSettingsTestHelper::HasObserver(Observer* observer) { 103 bool DeviceSettingsTestHelper::HasObserver(const Observer* observer) const {
104 return false; 104 return false;
105 } 105 }
106 106
107 void DeviceSettingsTestHelper::EmitLoginPromptVisible() {} 107 void DeviceSettingsTestHelper::EmitLoginPromptVisible() {}
108 108
109 void DeviceSettingsTestHelper::RestartJob(int pid, 109 void DeviceSettingsTestHelper::RestartJob(int pid,
110 const std::string& command_line) {} 110 const std::string& command_line) {}
111 111
112 void DeviceSettingsTestHelper::StartSession(const std::string& user_email) {} 112 void DeviceSettingsTestHelper::StartSession(const std::string& user_email) {}
113 113
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 profile_.get()); 250 profile_.get());
251 } 251 }
252 OwnerSettingsServiceChromeOS* service = 252 OwnerSettingsServiceChromeOS* service =
253 OwnerSettingsServiceChromeOSFactory::GetForProfile(profile_.get()); 253 OwnerSettingsServiceChromeOSFactory::GetForProfile(profile_.get());
254 CHECK(service); 254 CHECK(service);
255 if (tpm_is_ready) 255 if (tpm_is_ready)
256 service->OnTPMTokenReady(true /* token is enabled */); 256 service->OnTPMTokenReady(true /* token is enabled */);
257 } 257 }
258 258
259 } // namespace chromeos 259 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698