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

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

Issue 2653823004: Do not restart Chrome to apply user flags with stub session manager (Closed)
Patch Set: .\ Created 3 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 (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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 const StorePolicyCallback& callback) {} 168 const StorePolicyCallback& callback) {}
169 169
170 void DeviceSettingsTestHelper::StoreDeviceLocalAccountPolicy( 170 void DeviceSettingsTestHelper::StoreDeviceLocalAccountPolicy(
171 const std::string& account_id, 171 const std::string& account_id,
172 const std::string& policy_blob, 172 const std::string& policy_blob,
173 const StorePolicyCallback& callback) { 173 const StorePolicyCallback& callback) {
174 device_local_account_policy_[account_id].policy_blob_ = policy_blob; 174 device_local_account_policy_[account_id].policy_blob_ = policy_blob;
175 device_local_account_policy_[account_id].store_callbacks_.push_back(callback); 175 device_local_account_policy_[account_id].store_callbacks_.push_back(callback);
176 } 176 }
177 177
178 bool DeviceSettingsTestHelper::SupportsRestartToApplyUserFlags() const {
179 return false;
180 }
181
178 void DeviceSettingsTestHelper::SetFlagsForUser( 182 void DeviceSettingsTestHelper::SetFlagsForUser(
179 const cryptohome::Identification& cryptohome_id, 183 const cryptohome::Identification& cryptohome_id,
180 const std::vector<std::string>& flags) {} 184 const std::vector<std::string>& flags) {}
181 185
182 void DeviceSettingsTestHelper::GetServerBackedStateKeys( 186 void DeviceSettingsTestHelper::GetServerBackedStateKeys(
183 const StateKeysCallback& callback) {} 187 const StateKeysCallback& callback) {}
184 188
185 void DeviceSettingsTestHelper::CheckArcAvailability( 189 void DeviceSettingsTestHelper::CheckArcAvailability(
186 const ArcCallback& callback) {} 190 const ArcCallback& callback) {}
187 191
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 const_cast<user_manager::User*>(user)); 294 const_cast<user_manager::User*>(user));
291 } 295 }
292 OwnerSettingsServiceChromeOS* service = 296 OwnerSettingsServiceChromeOS* service =
293 OwnerSettingsServiceChromeOSFactory::GetForBrowserContext(profile_.get()); 297 OwnerSettingsServiceChromeOSFactory::GetForBrowserContext(profile_.get());
294 CHECK(service); 298 CHECK(service);
295 if (tpm_is_ready) 299 if (tpm_is_ready)
296 service->OnTPMTokenReady(true /* token is enabled */); 300 service->OnTPMTokenReady(true /* token is enabled */);
297 } 301 }
298 302
299 } // namespace chromeos 303 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/settings/device_settings_test_helper.h ('k') | chromeos/dbus/fake_session_manager_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698