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

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

Issue 23530007: Move API flows for cloud print into common class CloudPrintBaseApiFlow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: AppendQueryParameter Created 7 years, 3 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/ui/webui/local_discovery/local_discovery_ui_handler.h ('k') | chrome/chrome_browser.gypi » ('j') | 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 1895c94dbbad88901dd15b4b7bd03f0839bd6d59..b4bb6ea66f52bcfded663f28e1e2865dd78e3ef5 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
@@ -26,7 +26,6 @@ namespace {
// TODO(noamsml): This is a temporary shim until automated_url is in the
// response.
const char kPrivetAutomatedClaimURLFormat[] = "%s/confirm?token=%s";
-const int kAccountIndexUseOAuth2 = -1;
LocalDiscoveryUIHandler::Factory* g_factory = NULL;
int g_num_visible = 0;
@@ -235,9 +234,8 @@ void LocalDiscoveryUIHandler::OnPrivetRegisterDone(
}
void LocalDiscoveryUIHandler::OnConfirmDone(
- PrivetConfirmApiCallFlow::Status status) {
- if (status == PrivetConfirmApiCallFlow::SUCCESS) {
- DLOG(INFO) << "Confirm success.";
+ CloudPrintBaseApiFlow::Status status) {
+ if (status == CloudPrintBaseApiFlow::SUCCESS) {
confirm_api_call_flow_.reset();
current_register_operation_->CompleteRegistration();
} else {
« no previous file with comments | « chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698