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

Side by Side Diff: chrome/browser/ui/webui/chromeos/proxy_settings_ui.cc

Issue 14846004: Migrate ProxyConfigServiceImpl to NetworkStateHandler and NetworkProfileHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Initial patch. Created 7 years, 7 months 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/ui/webui/chromeos/proxy_settings_ui.h" 5 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h"
6 6
7 #include "base/memory/ref_counted_memory.h" 7 #include "base/memory/ref_counted_memory.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 proxy_handler_->Uninitialize(); 111 proxy_handler_->Uninitialize();
112 } 112 }
113 113
114 void ProxySettingsUI::InitializeHandlers() { 114 void ProxySettingsUI::InitializeHandlers() {
115 core_handler_->InitializeHandler(); 115 core_handler_->InitializeHandler();
116 proxy_handler_->InitializeHandler(); 116 proxy_handler_->InitializeHandler();
117 core_handler_->InitializePage(); 117 core_handler_->InitializePage();
118 proxy_handler_->InitializePage(); 118 proxy_handler_->InitializePage();
119 Profile* profile = Profile::FromWebUI(web_ui()); 119 Profile* profile = Profile::FromWebUI(web_ui());
120 PrefProxyConfigTracker* proxy_tracker = profile->GetProxyConfigTracker(); 120 PrefProxyConfigTracker* proxy_tracker = profile->GetProxyConfigTracker();
121 proxy_tracker->UIMakeActiveNetworkCurrent(); 121 proxy_tracker->UIMakeDefaultNetworkCurrent();
122 std::string network_name; 122 std::string network_name;
123 proxy_tracker->UIGetCurrentNetworkName(&network_name); 123 proxy_tracker->UIGetCurrentNetworkName(&network_name);
124 } 124 }
125 125
126 } // namespace chromeos 126 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698