OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chromecast/common/chromecast_config.h" | 5 #include "chromecast/common/chromecast_config.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/file_util.h" | 10 #include "base/files/file_util.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
13 #include "base/prefs/json_pref_store.h" | 13 #include "base/prefs/json_pref_store.h" |
14 #include "base/prefs/pref_registry_simple.h" | 14 #include "base/prefs/pref_registry_simple.h" |
15 #include "base/prefs/pref_service_factory.h" | 15 #include "base/prefs/pref_service_factory.h" |
16 #include "base/prefs/pref_store.h" | 16 #include "base/prefs/pref_store.h" |
17 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
18 #include "chromecast/common/cast_paths.h" | 18 #include "chromecast/common/cast_paths.h" |
19 #include "chromecast/common/pref_names.h" | 19 #include "chromecast/common/pref_names.h" |
20 #include "chromecast/metrics/cast_metrics_prefs.h" | 20 #include "chromecast/metrics/cast_metrics_prefs.h" |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 if (pref_service_->IsUserModifiablePreference(key.c_str())) { | 132 if (pref_service_->IsUserModifiablePreference(key.c_str())) { |
133 VLOG(1) << "Set config: key=" << key << ", value=" << value; | 133 VLOG(1) << "Set config: key=" << key << ", value=" << value; |
134 pref_service_->SetInteger(key.c_str(), value); | 134 pref_service_->SetInteger(key.c_str(), value); |
135 } else { | 135 } else { |
136 LOG(ERROR) << "Cannot set read-only config: key=" << key | 136 LOG(ERROR) << "Cannot set read-only config: key=" << key |
137 << ", value=" << value; | 137 << ", value=" << value; |
138 } | 138 } |
139 } | 139 } |
140 | 140 |
141 } // namespace chromecast | 141 } // namespace chromecast |
OLD | NEW |