OLD | NEW |
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 Loading... |
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 |
OLD | NEW |