| 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()) {
|
|
|