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/options2/chromeos/internet_options_handler.h" | 5 #include "chrome/browser/ui/webui/options2/chromeos/internet_options_handler.h" |
6 | 6 |
7 #include <ctype.h> | 7 #include <ctype.h> |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 name_servers_key, &name_servers)) { | 468 name_servers_key, &name_servers)) { |
469 ip_info_dict->SetString(kIpConfigNameServers, name_servers); | 469 ip_info_dict->SetString(kIpConfigNameServers, name_servers); |
470 VLOG(2) << "Found " << name_servers_key << ": " << name_servers; | 470 VLOG(2) << "Found " << name_servers_key << ": " << name_servers; |
471 } | 471 } |
472 | 472 |
473 return ip_info_dict.release(); | 473 return ip_info_dict.release(); |
474 } | 474 } |
475 | 475 |
476 } // namespace | 476 } // namespace |
477 | 477 |
478 namespace options2 { | 478 namespace options { |
479 | 479 |
480 InternetOptionsHandler::InternetOptionsHandler() | 480 InternetOptionsHandler::InternetOptionsHandler() |
481 : ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)) { | 481 : ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)) { |
482 registrar_.Add(this, chrome::NOTIFICATION_REQUIRE_PIN_SETTING_CHANGE_ENDED, | 482 registrar_.Add(this, chrome::NOTIFICATION_REQUIRE_PIN_SETTING_CHANGE_ENDED, |
483 content::NotificationService::AllSources()); | 483 content::NotificationService::AllSources()); |
484 registrar_.Add(this, chrome::NOTIFICATION_ENTER_PIN_ENDED, | 484 registrar_.Add(this, chrome::NOTIFICATION_ENTER_PIN_ENDED, |
485 content::NotificationService::AllSources()); | 485 content::NotificationService::AllSources()); |
486 cros_ = chromeos::CrosLibrary::Get()->GetNetworkLibrary(); | 486 cros_ = chromeos::CrosLibrary::Get()->GetNetworkLibrary(); |
487 if (cros_) { | 487 if (cros_) { |
488 cros_->AddNetworkManagerObserver(this); | 488 cros_->AddNetworkManagerObserver(this); |
(...skipping 1261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1750 const base::Value* default_value = ui_data.default_value(); | 1750 const base::Value* default_value = ui_data.default_value(); |
1751 if (default_value) | 1751 if (default_value) |
1752 value_dict->Set(kTagDefault, default_value->DeepCopy()); | 1752 value_dict->Set(kTagDefault, default_value->DeepCopy()); |
1753 if (ui_data.managed()) | 1753 if (ui_data.managed()) |
1754 value_dict->SetString(kTagControlledBy, kTagPolicy); | 1754 value_dict->SetString(kTagControlledBy, kTagPolicy); |
1755 else if (ui_data.recommended()) | 1755 else if (ui_data.recommended()) |
1756 value_dict->SetString(kTagControlledBy, kTagRecommended); | 1756 value_dict->SetString(kTagControlledBy, kTagRecommended); |
1757 settings->Set(key, value_dict); | 1757 settings->Set(key, value_dict); |
1758 } | 1758 } |
1759 | 1759 |
1760 } // namespace options2 | 1760 } // namespace options |
OLD | NEW |