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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 proxy_handler_->Uninitialize(); | 119 proxy_handler_->Uninitialize(); |
120 } | 120 } |
121 | 121 |
122 void ProxySettingsUI::InitializeHandlers() { | 122 void ProxySettingsUI::InitializeHandlers() { |
123 core_handler_->InitializeHandler(); | 123 core_handler_->InitializeHandler(); |
124 proxy_handler_->InitializeHandler(); | 124 proxy_handler_->InitializeHandler(); |
125 core_handler_->InitializePage(); | 125 core_handler_->InitializePage(); |
126 proxy_handler_->InitializePage(); | 126 proxy_handler_->InitializePage(); |
127 Profile* profile = Profile::FromWebUI(web_ui()); | 127 Profile* profile = Profile::FromWebUI(web_ui()); |
128 PrefProxyConfigTracker* proxy_tracker = profile->GetProxyConfigTracker(); | 128 PrefProxyConfigTracker* proxy_tracker = profile->GetProxyConfigTracker(); |
129 proxy_tracker->UIMakeActiveNetworkCurrent(); | 129 proxy_tracker->UIMakeDefaultNetworkCurrent(); |
130 std::string network_name; | 130 std::string network_name; |
131 proxy_tracker->UIGetCurrentNetworkName(&network_name); | 131 proxy_tracker->UIGetCurrentNetworkName(&network_name); |
132 } | 132 } |
133 | 133 |
134 } // namespace chromeos | 134 } // namespace chromeos |
OLD | NEW |