Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: chrome/browser/extensions/extension_proxy_api.cc

Issue 5730004: Rename ExtensionsService to ExtensionService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/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/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/extensions/extensions_service.h" 11 #include "chrome/browser/extensions/extension_service.h"
12 #include "chrome/common/pref_names.h" 12 #include "chrome/common/pref_names.h"
13 13
14 namespace { 14 namespace {
15 15
16 // The scheme for which to use a manually specified proxy, not of the proxy URI 16 // The scheme for which to use a manually specified proxy, not of the proxy URI
17 // itself. 17 // itself.
18 enum { 18 enum {
19 SCHEME_ALL = 0, 19 SCHEME_ALL = 0,
20 SCHEME_HTTP, 20 SCHEME_HTTP,
21 SCHEME_HTTPS, 21 SCHEME_HTTPS,
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 } 152 }
153 } 153 }
154 } 154 }
155 155
156 SendNotification(prefs::kProxyServer, Value::CreateStringValue(proxy_pref)); 156 SendNotification(prefs::kProxyServer, Value::CreateStringValue(proxy_pref));
157 return true; 157 return true;
158 } 158 }
159 159
160 void UseCustomProxySettingsFunction::SendNotification(const char* pref_path, 160 void UseCustomProxySettingsFunction::SendNotification(const char* pref_path,
161 Value* pref_value) { 161 Value* pref_value) {
162 profile()->GetExtensionsService()->extension_prefs() 162 profile()->GetExtensionService()->extension_prefs()
163 ->SetExtensionControlledPref(extension_id(), pref_path, pref_value); 163 ->SetExtensionControlledPref(extension_id(), pref_path, pref_value);
164 } 164 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_process_manager.cc ('k') | chrome/browser/extensions/extension_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698