| 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/proxy_cros_settings_provider.h" | 5 #include "chrome/browser/chromeos/proxy_cros_settings_provider.h" |
| 6 | 6 |
| 7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
| 8 #include "chrome/browser/browser_list.h" | 8 #include "chrome/browser/browser_list.h" |
| 9 #include "chrome/browser/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 10 #include "chrome/browser/profile_manager.h" | 10 #include "chrome/browser/profiles/profile_manager.h" |
| 11 | 11 |
| 12 namespace chromeos { | 12 namespace chromeos { |
| 13 | 13 |
| 14 static const char kProxyPacUrl[] = "cros.proxy.pacurl"; | 14 static const char kProxyPacUrl[] = "cros.proxy.pacurl"; |
| 15 static const char kProxySingleHttp[] = "cros.proxy.singlehttp"; | 15 static const char kProxySingleHttp[] = "cros.proxy.singlehttp"; |
| 16 static const char kProxySingleHttpPort[] = "cros.proxy.singlehttpport"; | 16 static const char kProxySingleHttpPort[] = "cros.proxy.singlehttpport"; |
| 17 static const char kProxyHttpUrl[] = "cros.proxy.httpurl"; | 17 static const char kProxyHttpUrl[] = "cros.proxy.httpurl"; |
| 18 static const char kProxyHttpPort[] = "cros.proxy.httpport"; | 18 static const char kProxyHttpPort[] = "cros.proxy.httpport"; |
| 19 static const char kProxyHttpsUrl[] = "cros.proxy.httpsurl"; | 19 static const char kProxyHttpsUrl[] = "cros.proxy.httpsurl"; |
| 20 static const char kProxyHttpsPort[] = "cros.proxy.httpsport"; | 20 static const char kProxyHttpsPort[] = "cros.proxy.httpsport"; |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 Value::CreateIntegerValue(proxy.server.host_port_pair().port()) : | 325 Value::CreateIntegerValue(proxy.server.host_port_pair().port()) : |
| 326 NULL; | 326 NULL; |
| 327 } | 327 } |
| 328 | 328 |
| 329 void ProxyCrosSettingsProvider::SetCache(const std::string& key, | 329 void ProxyCrosSettingsProvider::SetCache(const std::string& key, |
| 330 const Value* value) { | 330 const Value* value) { |
| 331 cache_.Set(key, value->DeepCopy()); | 331 cache_.Set(key, value->DeepCopy()); |
| 332 } | 332 } |
| 333 | 333 |
| 334 } // namespace chromeos | 334 } // namespace chromeos |
| OLD | NEW |