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

Unified Diff: components/sync/driver/sync_stopped_reporter.cc

Issue 2203673002: [Sync] Move //components/sync_driver to //components/sync/driver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sd-a
Patch Set: Full change rebased on static lib. Created 4 years, 4 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: components/sync/driver/sync_stopped_reporter.cc
diff --git a/components/sync_driver/sync_stopped_reporter.cc b/components/sync/driver/sync_stopped_reporter.cc
similarity index 93%
rename from components/sync_driver/sync_stopped_reporter.cc
rename to components/sync/driver/sync_stopped_reporter.cc
index 37b8fccb762ae8b6aa9ace9274e0da111d966a3f..ac846422d58ed86bc03dc6031a5d9ad208289e9c 100644
--- a/components/sync_driver/sync_stopped_reporter.cc
+++ b/components/sync/driver/sync_stopped_reporter.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 "components/sync_driver/sync_stopped_reporter.h"
+#include "components/sync/driver/sync_stopped_reporter.h"
#include "base/location.h"
#include "base/logging.h"
@@ -72,8 +72,7 @@ void SyncStoppedReporter::ReportSyncStopped(const std::string& access_token,
"%s: %s", net::HttpRequestHeaders::kUserAgent, user_agent_.c_str()));
fetcher_->SetRequestContext(request_context_.get());
fetcher_->SetUploadData("application/octet-stream", msg);
- fetcher_->SetLoadFlags(net::LOAD_BYPASS_CACHE |
- net::LOAD_DISABLE_CACHE |
+ fetcher_->SetLoadFlags(net::LOAD_BYPASS_CACHE | net::LOAD_DISABLE_CACHE |
net::LOAD_DO_NOT_SAVE_COOKIES |
net::LOAD_DO_NOT_SEND_COOKIES);
fetcher_->Start();
@@ -82,8 +81,8 @@ void SyncStoppedReporter::ReportSyncStopped(const std::string& access_token,
}
void SyncStoppedReporter::OnURLFetchComplete(const net::URLFetcher* source) {
- Result result = source->GetResponseCode() == net::HTTP_OK
- ? RESULT_SUCCESS : RESULT_ERROR;
+ Result result =
+ source->GetResponseCode() == net::HTTP_OK ? RESULT_SUCCESS : RESULT_ERROR;
fetcher_.reset();
timer_.Stop();
if (!callback_.is_null()) {
« no previous file with comments | « components/sync/driver/sync_stopped_reporter.h ('k') | components/sync/driver/sync_stopped_reporter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698