| Index: chrome/browser/extensions/api/networking_private/networking_private_api_chromeos.cc
|
| diff --git a/chrome/browser/extensions/api/networking_private/networking_private_api_chromeos.cc b/chrome/browser/extensions/api/networking_private/networking_private_api_chromeos.cc
|
| index 564d035f6ae18915d5abc2210cc8e0bf99d2fb87..d904f64f2271041afb54cc9c90405f443f9e5016 100644
|
| --- a/chrome/browser/extensions/api/networking_private/networking_private_api_chromeos.cc
|
| +++ b/chrome/browser/extensions/api/networking_private/networking_private_api_chromeos.cc
|
| @@ -702,9 +702,6 @@ bool NetworkingPrivateGetCaptivePortalStatusFunction::RunImpl() {
|
| api::GetCaptivePortalStatus::Params::Create(*args_);
|
| EXTENSION_FUNCTION_VALIDATE(params);
|
|
|
| - // The |network_guid| parameter is storing the service path.
|
| - const std::string& service_path = params->network_guid;
|
| -
|
| NetworkPortalDetector* detector = NetworkPortalDetector::Get();
|
| if (!detector) {
|
| error_ = "Error.NotReady";
|
| @@ -712,7 +709,7 @@ bool NetworkingPrivateGetCaptivePortalStatusFunction::RunImpl() {
|
| }
|
|
|
| NetworkPortalDetector::CaptivePortalState state =
|
| - detector->GetCaptivePortalState(service_path);
|
| + detector->GetCaptivePortalState(params->network_path);
|
|
|
| SetResult(new base::StringValue(
|
| NetworkPortalDetector::CaptivePortalStatusString(state.status)));
|
|
|