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

Unified Diff: chrome/browser/local_discovery/cloud_print_printer_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_print_printer_list.cc
diff --git a/chrome/browser/local_discovery/cloud_print_printer_list.cc b/chrome/browser/local_discovery/cloud_print_printer_list.cc
index d4ad9ba4dd1d80f92ae648c321ed77a367e373a4..39b4b9ac0dbc868374abd3b508fc69256b912392 100644
--- a/chrome/browser/local_discovery/cloud_print_printer_list.cc
+++ b/chrome/browser/local_discovery/cloud_print_printer_list.cc
@@ -17,12 +17,10 @@ CloudPrintPrinterList::CloudPrintPrinterList(
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::GetCloudPrintRelativeURL("search"),
this) {
}
@@ -66,7 +64,9 @@ void CloudPrintPrinterList::OnGCDAPIFlowComplete(
delegate_->OnDeviceListReady();
}
-bool CloudPrintPrinterList::GCDIsCloudPrint() { return true; }
+GURL CloudPrintPrinterList::GetURL() {
+ return cloud_devices::GetCloudPrintRelativeURL("search");
+}
bool CloudPrintPrinterList::FillPrinterDetails(
const base::DictionaryValue* printer_value,
« no previous file with comments | « chrome/browser/local_discovery/cloud_print_printer_list.h ('k') | chrome/browser/local_discovery/gcd_base_api_flow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698