| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/user_cros_settings_provider.h" | 5 #include "chrome/browser/chromeos/user_cros_settings_provider.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/hash_tables.h" | 10 #include "base/hash_tables.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/singleton.h" | 12 #include "base/singleton.h" |
| 13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
| 14 #include "base/task.h" | 14 #include "base/task.h" |
| 15 #include "base/values.h" | 15 #include "base/values.h" |
| 16 #include "chrome/browser/browser_process.h" | 16 #include "chrome/browser/browser_process.h" |
| 17 #include "chrome/browser/browser_thread.h" | |
| 18 #include "chrome/browser/chromeos/cros/cros_library.h" | 17 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 19 #include "chrome/browser/chromeos/cros/login_library.h" | 18 #include "chrome/browser/chromeos/cros/login_library.h" |
| 20 #include "chrome/browser/chromeos/cros_settings.h" | 19 #include "chrome/browser/chromeos/cros_settings.h" |
| 21 #include "chrome/browser/chromeos/cros_settings_names.h" | 20 #include "chrome/browser/chromeos/cros_settings_names.h" |
| 22 #include "chrome/browser/chromeos/login/ownership_service.h" | 21 #include "chrome/browser/chromeos/login/ownership_service.h" |
| 23 #include "chrome/browser/chromeos/login/user_manager.h" | 22 #include "chrome/browser/chromeos/login/user_manager.h" |
| 24 #include "chrome/browser/prefs/pref_service.h" | 23 #include "chrome/browser/prefs/pref_service.h" |
| 24 #include "content/browser/browser_thread.h" |
| 25 | 25 |
| 26 namespace chromeos { | 26 namespace chromeos { |
| 27 | 27 |
| 28 namespace { | 28 namespace { |
| 29 | 29 |
| 30 const char kTrueIncantation[] = "true"; | 30 const char kTrueIncantation[] = "true"; |
| 31 const char kFalseIncantation[] = "false"; | 31 const char kFalseIncantation[] = "false"; |
| 32 const char kTrustedSuffix[] = "/trusted"; | 32 const char kTrustedSuffix[] = "/trusted"; |
| 33 | 33 |
| 34 // For all our boolean settings following is applicable: | 34 // For all our boolean settings following is applicable: |
| (...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 if (cached_whitelist->Remove(email_value) != -1) | 523 if (cached_whitelist->Remove(email_value) != -1) |
| 524 prefs->ScheduleSavePersistentPrefs(); | 524 prefs->ScheduleSavePersistentPrefs(); |
| 525 } | 525 } |
| 526 | 526 |
| 527 // static | 527 // static |
| 528 void UserCrosSettingsProvider::UpdateCachedOwner(const std::string& email) { | 528 void UserCrosSettingsProvider::UpdateCachedOwner(const std::string& email) { |
| 529 UpdateCacheString(kDeviceOwner, email, USE_VALUE_SUPPLIED); | 529 UpdateCacheString(kDeviceOwner, email, USE_VALUE_SUPPLIED); |
| 530 } | 530 } |
| 531 | 531 |
| 532 } // namespace chromeos | 532 } // namespace chromeos |
| OLD | NEW |