OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/bind.h" | 10 #include "base/bind.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "chrome/browser/chromeos/login/user_manager.h" | 25 #include "chrome/browser/chromeos/login/user_manager.h" |
26 #include "chrome/browser/policy/browser_policy_connector.h" | 26 #include "chrome/browser/policy/browser_policy_connector.h" |
27 #include "chrome/browser/prefs/pref_service.h" | 27 #include "chrome/browser/prefs/pref_service.h" |
28 #include "chrome/browser/prefs/scoped_user_pref_update.h" | 28 #include "chrome/browser/prefs/scoped_user_pref_update.h" |
29 #include "chrome/browser/ui/options/options_util.h" | 29 #include "chrome/browser/ui/options/options_util.h" |
30 #include "chrome/common/chrome_notification_types.h" | 30 #include "chrome/common/chrome_notification_types.h" |
31 #include "chrome/installer/util/google_update_settings.h" | 31 #include "chrome/installer/util/google_update_settings.h" |
32 #include "content/public/browser/browser_thread.h" | 32 #include "content/public/browser/browser_thread.h" |
33 #include "content/public/browser/notification_service.h" | 33 #include "content/public/browser/notification_service.h" |
34 | 34 |
| 35 using content::BrowserThread; |
| 36 |
35 namespace chromeos { | 37 namespace chromeos { |
36 | 38 |
37 namespace { | 39 namespace { |
38 | 40 |
39 const char kTrueIncantation[] = "true"; | 41 const char kTrueIncantation[] = "true"; |
40 const char kFalseIncantation[] = "false"; | 42 const char kFalseIncantation[] = "false"; |
41 const char kTrustedSuffix[] = "/trusted"; | 43 const char kTrustedSuffix[] = "/trusted"; |
42 | 44 |
43 // For all our boolean settings following is applicable: | 45 // For all our boolean settings following is applicable: |
44 // true is default permissive value and false is safe prohibitic value. | 46 // true is default permissive value and false is safe prohibitic value. |
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
747 if (cached_whitelist_update->Remove(email_value, NULL)) | 749 if (cached_whitelist_update->Remove(email_value, NULL)) |
748 prefs->ScheduleSavePersistentPrefs(); | 750 prefs->ScheduleSavePersistentPrefs(); |
749 } | 751 } |
750 | 752 |
751 // static | 753 // static |
752 void UserCrosSettingsProvider::UpdateCachedOwner(const std::string& email) { | 754 void UserCrosSettingsProvider::UpdateCachedOwner(const std::string& email) { |
753 UpdateCacheString(kDeviceOwner, email, USE_VALUE_SUPPLIED); | 755 UpdateCacheString(kDeviceOwner, email, USE_VALUE_SUPPLIED); |
754 } | 756 } |
755 | 757 |
756 } // namespace chromeos | 758 } // namespace chromeos |
OLD | NEW |