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

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

Issue 298883012: Added GetURL, GetOAuthScope, GetExtraRequestHeaders into GCDBaseApiFlow::Delegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
« no previous file with comments | « chrome/browser/local_discovery/privet_confirm_api_flow_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 aee7a8f37d05ba07c79d749d0d9d134cc2bdfe48..c935f1e9387a7bcd75992965be397efe5d5ad390 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
@@ -165,8 +165,8 @@ void LocalDiscoveryUIHandler::HandleStart(const base::ListValue* args) {
// of a reload.
if (!privet_lister_) {
service_discovery_client_ = ServiceDiscoverySharedClient::GetInstance();
- privet_lister_.reset(new PrivetDeviceListerImpl(
- service_discovery_client_.get(), this));
+ privet_lister_.reset(
+ new PrivetDeviceListerImpl(service_discovery_client_.get(), this));
privet_http_factory_ =
PrivetHTTPAsynchronousFactory::CreateInstance(
service_discovery_client_.get(), profile->GetRequestContext());
@@ -301,10 +301,6 @@ void LocalDiscoveryUIHandler::OnPrivetRegisterClaimToken(
return;
}
- bool is_cloud_print =
- device_descriptions_[current_http_client_->GetName()].type ==
- kDeviceTypePrinter;
-
Profile* profile = Profile::FromWebUI(web_ui());
ProfileOAuth2TokenService* token_service =
@@ -326,7 +322,6 @@ void LocalDiscoveryUIHandler::OnPrivetRegisterClaimToken(
profile->GetRequestContext(),
token_service,
signin_manager->GetAuthenticatedAccountId(),
- is_cloud_print,
token,
base::Bind(&LocalDiscoveryUIHandler::OnConfirmDone,
base::Unretained(this))));
« no previous file with comments | « chrome/browser/local_discovery/privet_confirm_api_flow_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698