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

Side by Side Diff: sync/engine/syncer.cc

Issue 1849563005: [Sync] Add cookie jar mismatch logging (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests again Created 4 years, 8 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 | « sync/engine/commit_util.cc ('k') | sync/internal_api/public/sync_manager.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/syncer.h" 5 #include "sync/engine/syncer.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 // errors from the ServerConnectionManager if an exist has been requested. 177 // errors from the ServerConnectionManager if an exist has been requested.
178 // However, it doesn't hurt to check it anyway. 178 // However, it doesn't hurt to check it anyway.
179 while (!ExitRequested()) { 179 while (!ExitRequested()) {
180 scoped_ptr<Commit> commit( 180 scoped_ptr<Commit> commit(
181 Commit::Init( 181 Commit::Init(
182 requested_types, 182 requested_types,
183 session->context()->GetEnabledTypes(), 183 session->context()->GetEnabledTypes(),
184 session->context()->max_commit_batch_size(), 184 session->context()->max_commit_batch_size(),
185 session->context()->account_name(), 185 session->context()->account_name(),
186 session->context()->directory()->cache_guid(), 186 session->context()->directory()->cache_guid(),
187 session->context()->cookie_jar_mismatch(),
187 commit_processor, 188 commit_processor,
188 session->context()->extensions_activity())); 189 session->context()->extensions_activity()));
189 if (!commit) { 190 if (!commit) {
190 break; 191 break;
191 } 192 }
192 193
193 SyncerError error = commit->PostAndProcessResponse( 194 SyncerError error = commit->PostAndProcessResponse(
194 nudge_tracker, session, session->mutable_status_controller(), 195 nudge_tracker, session, session->mutable_status_controller(),
195 session->context()->extensions_activity()); 196 session->context()->extensions_activity());
196 commit->CleanUp(); 197 commit->CleanUp();
(...skipping 27 matching lines...) Expand all
224 } 225 }
225 226
226 bool Syncer::PostClearServerData(SyncSession* session) { 227 bool Syncer::PostClearServerData(SyncSession* session) {
227 DCHECK(session); 228 DCHECK(session);
228 ClearServerData clear_server_data(session->context()->account_name()); 229 ClearServerData clear_server_data(session->context()->account_name());
229 const SyncerError post_result = clear_server_data.SendRequest(session); 230 const SyncerError post_result = clear_server_data.SendRequest(session);
230 return post_result == SYNCER_OK; 231 return post_result == SYNCER_OK;
231 } 232 }
232 233
233 } // namespace syncer 234 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/engine/commit_util.cc ('k') | sync/internal_api/public/sync_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698