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

Unified Diff: chrome/browser/printing/cloud_print/gcd_api_flow_impl.cc

Issue 1553333002: Move cloud print specific files out of local_discovery (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@moveprn
Patch Set: Created 4 years, 11 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/printing/cloud_print/gcd_api_flow_impl.cc
diff --git a/chrome/browser/local_discovery/gcd_api_flow_impl.cc b/chrome/browser/printing/cloud_print/gcd_api_flow_impl.cc
similarity index 88%
rename from chrome/browser/local_discovery/gcd_api_flow_impl.cc
rename to chrome/browser/printing/cloud_print/gcd_api_flow_impl.cc
index ddad20130c18e58df941091129e5115bc80e3c07..a80436459b954e148d5465bb4935e8c36df5b522 100644
--- a/chrome/browser/local_discovery/gcd_api_flow_impl.cc
+++ b/chrome/browser/printing/cloud_print/gcd_api_flow_impl.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/local_discovery/gcd_api_flow_impl.h"
+#include "chrome/browser/printing/cloud_print/gcd_api_flow_impl.h"
#include <stddef.h>
#include <utility>
@@ -11,7 +11,7 @@
#include "base/strings/string_number_conversions.h"
#include "base/strings/stringprintf.h"
#include "base/values.h"
-#include "chrome/browser/local_discovery/gcd_constants.h"
+#include "chrome/browser/printing/cloud_print/gcd_constants.h"
#include "chrome/common/cloud_print/cloud_print_constants.h"
#include "components/cloud_devices/common/cloud_devices_urls.h"
#include "google_apis/gaia/google_service_auth_error.h"
@@ -20,7 +20,7 @@
#include "net/http/http_status_code.h"
#include "net/url_request/url_request_status.h"
-namespace local_discovery {
+namespace cloud_print {
GCDApiFlowImpl::GCDApiFlowImpl(net::URLRequestContextGetter* request_context,
OAuth2TokenService* token_service,
@@ -60,7 +60,7 @@ void GCDApiFlowImpl::OnGetTokenSuccess(
void GCDApiFlowImpl::OnGetTokenFailure(
const OAuth2TokenService::Request* request,
const GoogleServiceAuthError& error) {
- request_->OnGCDAPIFlowError(ERROR_TOKEN);
+ request_->OnGCDApiFlowError(ERROR_TOKEN);
}
void GCDApiFlowImpl::CreateRequest(const GURL& url) {
@@ -91,12 +91,12 @@ void GCDApiFlowImpl::OnURLFetchComplete(const net::URLFetcher* source) {
if (source->GetStatus().status() != net::URLRequestStatus::SUCCESS ||
!source->GetResponseAsString(&response_str)) {
- request_->OnGCDAPIFlowError(ERROR_NETWORK);
+ request_->OnGCDApiFlowError(ERROR_NETWORK);
return;
}
if (source->GetResponseCode() != net::HTTP_OK) {
- request_->OnGCDAPIFlowError(ERROR_HTTP_CODE);
+ request_->OnGCDApiFlowError(ERROR_HTTP_CODE);
return;
}
@@ -105,11 +105,11 @@ void GCDApiFlowImpl::OnURLFetchComplete(const net::URLFetcher* source) {
const base::DictionaryValue* dictionary_value = NULL;
if (!value || !value->GetAsDictionary(&dictionary_value)) {
- request_->OnGCDAPIFlowError(ERROR_MALFORMED_RESPONSE);
+ request_->OnGCDApiFlowError(ERROR_MALFORMED_RESPONSE);
return;
}
- request_->OnGCDAPIFlowComplete(*dictionary_value);
+ request_->OnGCDApiFlowComplete(*dictionary_value);
}
-} // namespace local_discovery
+} // namespace cloud_print
« no previous file with comments | « chrome/browser/printing/cloud_print/gcd_api_flow_impl.h ('k') | chrome/browser/printing/cloud_print/gcd_api_flow_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698