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

Unified Diff: chrome/browser/local_discovery/cloud_device_list.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
Index: chrome/browser/local_discovery/cloud_device_list.cc
diff --git a/chrome/browser/local_discovery/cloud_device_list.cc b/chrome/browser/local_discovery/cloud_device_list.cc
index 9ffc3c3fa36516624fc4e65d0f1d00c1cc8a1c3f..a6121caf8e65392a01889ce4b0d8efb598d118ae 100644
--- a/chrome/browser/local_discovery/cloud_device_list.cc
+++ b/chrome/browser/local_discovery/cloud_device_list.cc
@@ -15,12 +15,10 @@ CloudDeviceList::CloudDeviceList(net::URLRequestContextGetter* request_context,
OAuth2TokenService* token_service,
const std::string& account_id,
CloudDeviceListDelegate* delegate)
- : request_context_(request_context),
- delegate_(delegate),
- api_flow_(request_context_,
+ : delegate_(delegate),
+ api_flow_(request_context,
token_service,
account_id,
- cloud_devices::GetCloudDevicesRelativeURL("devices"),
this) {
}
@@ -62,8 +60,8 @@ void CloudDeviceList::OnGCDAPIFlowComplete(GCDBaseApiFlow* flow,
delegate_->OnDeviceListReady();
}
-bool CloudDeviceList::GCDIsCloudPrint() {
- return false;
+GURL CloudDeviceList::GetURL() {
+ return cloud_devices::GetCloudDevicesRelativeURL("devices");
}
bool CloudDeviceList::FillDeviceDetails(
« no previous file with comments | « chrome/browser/local_discovery/cloud_device_list.h ('k') | chrome/browser/local_discovery/cloud_print_printer_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698