OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/owner_flags_storage.h" | 5 #include "chrome/browser/chromeos/settings/owner_flags_storage.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/prefs/pref_service.h" | |
9 #include "base/values.h" | 8 #include "base/values.h" |
10 #include "chrome/browser/about_flags.h" | 9 #include "chrome/browser/about_flags.h" |
11 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
12 #include "chrome/common/pref_names.h" | 11 #include "chrome/common/pref_names.h" |
13 #include "chromeos/settings/cros_settings_names.h" | 12 #include "chromeos/settings/cros_settings_names.h" |
14 #include "components/flags_ui/flags_ui_pref_names.h" | 13 #include "components/flags_ui/flags_ui_pref_names.h" |
15 #include "components/ownership/owner_settings_service.h" | 14 #include "components/ownership/owner_settings_service.h" |
| 15 #include "components/prefs/pref_service.h" |
16 | 16 |
17 namespace chromeos { | 17 namespace chromeos { |
18 namespace about_flags { | 18 namespace about_flags { |
19 | 19 |
20 OwnerFlagsStorage::OwnerFlagsStorage( | 20 OwnerFlagsStorage::OwnerFlagsStorage( |
21 PrefService* prefs, | 21 PrefService* prefs, |
22 ownership::OwnerSettingsService* owner_settings_service) | 22 ownership::OwnerSettingsService* owner_settings_service) |
23 : flags_ui::PrefServiceFlagsStorage(prefs), | 23 : flags_ui::PrefServiceFlagsStorage(prefs), |
24 owner_settings_service_(owner_settings_service) { | 24 owner_settings_service_(owner_settings_service) { |
25 // Make this code more unit test friendly. | 25 // Make this code more unit test friendly. |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 it != switches.end(); ++it) { | 64 it != switches.end(); ++it) { |
65 experiments_list.Append(new base::StringValue(*it)); | 65 experiments_list.Append(new base::StringValue(*it)); |
66 } | 66 } |
67 owner_settings_service_->Set(kStartUpFlags, experiments_list); | 67 owner_settings_service_->Set(kStartUpFlags, experiments_list); |
68 | 68 |
69 return true; | 69 return true; |
70 } | 70 } |
71 | 71 |
72 } // namespace about_flags | 72 } // namespace about_flags |
73 } // namespace chromeos | 73 } // namespace chromeos |
OLD | NEW |