OLD | NEW |
---|---|
1 // Copyright (c) 2010 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/extensions/extension_proxy_api.h" | 5 #include "chrome/browser/extensions/extension_proxy_api.h" |
6 | 6 |
7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
8 #include "base/stringprintf.h" | 8 #include "base/stringprintf.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/browser/prefs/proxy_prefs.h" | 10 #include "chrome/browser/prefs/proxy_prefs.h" |
11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
163 } | 163 } |
164 } | 164 } |
165 } | 165 } |
166 | 166 |
167 ApplyPreference(prefs::kProxyServer, Value::CreateStringValue(proxy_pref)); | 167 ApplyPreference(prefs::kProxyServer, Value::CreateStringValue(proxy_pref)); |
168 return true; | 168 return true; |
169 } | 169 } |
170 | 170 |
171 void UseCustomProxySettingsFunction::ApplyPreference(const char* pref_path, | 171 void UseCustomProxySettingsFunction::ApplyPreference(const char* pref_path, |
172 Value* pref_value) { | 172 Value* pref_value) { |
173 const bool incognito = false; | |
Mattias Nissler (ping if slow)
2011/01/05 12:08:07
Again your elaborate version of saying false?
battre
2011/01/05 20:23:08
Done.
Prepare to be asked about the meaning of "f
| |
173 profile()->GetExtensionService()->extension_prefs() | 174 profile()->GetExtensionService()->extension_prefs() |
174 ->SetExtensionControlledPref(extension_id(), pref_path, pref_value); | 175 ->SetExtensionControlledPref(extension_id(), pref_path, incognito, |
176 pref_value); | |
175 } | 177 } |
OLD | NEW |