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

Side by Side Diff: components/sync/engine_impl/clear_server_data.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. 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 unified diff | Download patch
« no previous file with comments | « components/sync/engine_impl/clear_server_data.h ('k') | components/sync/engine_impl/commit.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "sync/engine/clear_server_data.h" 5 #include "components/sync/engine_impl/clear_server_data.h"
6 6
7 #include "base/trace_event/trace_event.h" 7 #include "base/trace_event/trace_event.h"
8 #include "sync/engine/syncer.h" 8 #include "components/sync/engine/events/clear_server_data_request_event.h"
9 #include "sync/engine/syncer_proto_util.h" 9 #include "components/sync/engine/events/clear_server_data_response_event.h"
10 #include "sync/internal_api/public/events/clear_server_data_request_event.h" 10 #include "components/sync/engine_impl/syncer.h"
11 #include "sync/internal_api/public/events/clear_server_data_response_event.h" 11 #include "components/sync/engine_impl/syncer_proto_util.h"
12 #include "sync/sessions/sync_session.h" 12 #include "components/sync/sessions_impl/sync_session.h"
13 13
14 namespace syncer { 14 namespace syncer {
15 15
16 ClearServerData::ClearServerData(const std::string& account_name) { 16 ClearServerData::ClearServerData(const std::string& account_name) {
17 request_.set_share(account_name); 17 request_.set_share(account_name);
18 request_.set_message_contents( 18 request_.set_message_contents(
19 sync_pb::ClientToServerMessage::CLEAR_SERVER_DATA); 19 sync_pb::ClientToServerMessage::CLEAR_SERVER_DATA);
20 request_.mutable_clear_server_data(); 20 request_.mutable_clear_server_data();
21 } 21 }
22 22
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 if (session->context()->debug_info_getter()) { 57 if (session->context()->debug_info_getter()) {
58 DVLOG(1) << "Clearing client debug info."; 58 DVLOG(1) << "Clearing client debug info.";
59 session->context()->debug_info_getter()->ClearDebugInfo(); 59 session->context()->debug_info_getter()->ClearDebugInfo();
60 } 60 }
61 61
62 return post_result; 62 return post_result;
63 } 63 }
64 64
65 } // namespace syncer 65 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/engine_impl/clear_server_data.h ('k') | components/sync/engine_impl/commit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698