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

Unified Diff: chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc

Issue 320683002: Extracted PrivetV1HTTPClient with Privet v1 specific operations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc
diff --git a/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc b/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc
index 3918ed1e96a25e9a24b10bf201d34cdd9d9166cb..e8dd3c93c6040e893c24db3022136c1f75bf8882 100644
--- a/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc
+++ b/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc
@@ -180,9 +180,8 @@ void LocalDiscoveryUIHandler::HandleStart(const base::ListValue* args) {
service_discovery_client_ = ServiceDiscoverySharedClient::GetInstance();
privet_lister_.reset(
new PrivetDeviceListerImpl(service_discovery_client_.get(), this));
- privet_http_factory_ =
- PrivetHTTPAsynchronousFactory::CreateInstance(
- service_discovery_client_.get(), profile->GetRequestContext());
+ privet_http_factory_ = PrivetHTTPAsynchronousFactory::CreateInstance(
+ service_discovery_client_.get(), profile->GetRequestContext());
SigninManagerBase* signin_manager =
SigninManagerFactory::GetInstance()->GetForProfile(profile);
@@ -286,7 +285,7 @@ void LocalDiscoveryUIHandler::HandleShowSyncUI(
void LocalDiscoveryUIHandler::StartRegisterHTTP(
scoped_ptr<PrivetHTTPClient> http_client) {
- current_http_client_.swap(http_client);
+ current_http_client_ = PrivetV1HTTPClient::CreateDefault(http_client.Pass());
std::string user = GetSyncAccount();

Powered by Google App Engine
This is Rietveld 408576698