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

Side by Side Diff: extensions/browser/api/networking_private/networking_private_chromeos.cc

Issue 2751423004: Move NetworkingPrivateDelegate::CryptoVerify to networking_cast_private (Closed)
Patch Set: blocking pool removed Created 3 years, 9 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "extensions/browser/api/networking_private/networking_private_chromeos. h" 5 #include "extensions/browser/api/networking_private/networking_private_chromeos. h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 SetProxyEffectiveValue(port_dict, state, base::MakeUnique<base::Value>(port)); 299 SetProxyEffectiveValue(port_dict, state, base::MakeUnique<base::Value>(port));
300 } 300 }
301 301
302 } // namespace 302 } // namespace
303 303
304 //////////////////////////////////////////////////////////////////////////////// 304 ////////////////////////////////////////////////////////////////////////////////
305 305
306 namespace extensions { 306 namespace extensions {
307 307
308 NetworkingPrivateChromeOS::NetworkingPrivateChromeOS( 308 NetworkingPrivateChromeOS::NetworkingPrivateChromeOS(
309 content::BrowserContext* browser_context, 309 content::BrowserContext* browser_context)
310 std::unique_ptr<VerifyDelegate> verify_delegate) 310 : browser_context_(browser_context), weak_ptr_factory_(this) {}
311 : NetworkingPrivateDelegate(std::move(verify_delegate)),
312 browser_context_(browser_context),
313 weak_ptr_factory_(this) {}
314 311
315 NetworkingPrivateChromeOS::~NetworkingPrivateChromeOS() {} 312 NetworkingPrivateChromeOS::~NetworkingPrivateChromeOS() {}
316 313
317 void NetworkingPrivateChromeOS::GetProperties( 314 void NetworkingPrivateChromeOS::GetProperties(
318 const std::string& guid, 315 const std::string& guid,
319 const DictionaryCallback& success_callback, 316 const DictionaryCallback& success_callback,
320 const FailureCallback& failure_callback) { 317 const FailureCallback& failure_callback) {
321 std::string service_path, error; 318 std::string service_path, error;
322 if (!GetServicePathFromGuid(guid, &service_path, &error)) { 319 if (!GetServicePathFromGuid(guid, &service_path, &error)) {
323 failure_callback.Run(error); 320 failure_callback.Run(error);
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
855 // Eventually the caller (e.g. Settings) should handle any failures and 852 // Eventually the caller (e.g. Settings) should handle any failures and
856 // show its own configuration UI. crbug.com/380937. 853 // show its own configuration UI. crbug.com/380937.
857 if (ui_delegate()->HandleConnectFailed(guid, error_name)) { 854 if (ui_delegate()->HandleConnectFailed(guid, error_name)) {
858 success_callback.Run(); 855 success_callback.Run();
859 return; 856 return;
860 } 857 }
861 failure_callback.Run(error_name); 858 failure_callback.Run(error_name);
862 } 859 }
863 860
864 } // namespace extensions 861 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698