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

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

Issue 9030017: Implement ShellWindow in Views. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/sync/engine/syncer.h" 5 #include "chrome/browser/sync/engine/syncer.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.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.h" 10 #include "base/message_loop.h"
11 #include "base/time.h" 11 #include "base/time.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 next_step = CLEANUP_DISABLED_TYPES; 137 next_step = CLEANUP_DISABLED_TYPES;
138 break; 138 break;
139 case CLEANUP_DISABLED_TYPES: { 139 case CLEANUP_DISABLED_TYPES: {
140 CleanupDisabledTypesCommand cleanup; 140 CleanupDisabledTypesCommand cleanup;
141 cleanup.Execute(session); 141 cleanup.Execute(session);
142 next_step = DOWNLOAD_UPDATES; 142 next_step = DOWNLOAD_UPDATES;
143 break; 143 break;
144 } 144 }
145 case DOWNLOAD_UPDATES: { 145 case DOWNLOAD_UPDATES: {
146 DownloadUpdatesCommand download_updates; 146 DownloadUpdatesCommand download_updates;
147 session->mutable_status_controller()->set_last_download_updates_result( 147 download_updates.Execute(session);
Mihai Parparita -not on Chrome 2012/01/12 22:00:07 Did you really mean to change this file? Merge err
jeremya 2012/01/12 23:30:46 Oops, that was a windows file handle brokenness th
148 download_updates.Execute(session));
149 next_step = PROCESS_CLIENT_COMMAND; 148 next_step = PROCESS_CLIENT_COMMAND;
150 break; 149 break;
151 } 150 }
152 case PROCESS_CLIENT_COMMAND: { 151 case PROCESS_CLIENT_COMMAND: {
153 ProcessClientCommand(session); 152 ProcessClientCommand(session);
154 next_step = VERIFY_UPDATES; 153 next_step = VERIFY_UPDATES;
155 break; 154 break;
156 } 155 }
157 case VERIFY_UPDATES: { 156 case VERIFY_UPDATES: {
158 VerifyUpdatesCommand verify_updates; 157 VerifyUpdatesCommand verify_updates;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 215
217 next_step = POST_COMMIT_MESSAGE; 216 next_step = POST_COMMIT_MESSAGE;
218 } else { 217 } else {
219 next_step = BUILD_AND_PROCESS_CONFLICT_SETS; 218 next_step = BUILD_AND_PROCESS_CONFLICT_SETS;
220 } 219 }
221 220
222 break; 221 break;
223 } 222 }
224 case POST_COMMIT_MESSAGE: { 223 case POST_COMMIT_MESSAGE: {
225 PostCommitMessageCommand post_commit_command; 224 PostCommitMessageCommand post_commit_command;
226 session->mutable_status_controller()->set_last_post_commit_result( 225 post_commit_command.Execute(session);
227 post_commit_command.Execute(session));
228 next_step = PROCESS_COMMIT_RESPONSE; 226 next_step = PROCESS_COMMIT_RESPONSE;
229 break; 227 break;
230 } 228 }
231 case PROCESS_COMMIT_RESPONSE: { 229 case PROCESS_COMMIT_RESPONSE: {
232 session->mutable_status_controller()->reset_num_conflicting_commits(); 230 session->mutable_status_controller()->reset_num_conflicting_commits();
233 ProcessCommitResponseCommand process_response_command; 231 ProcessCommitResponseCommand process_response_command;
234 session->mutable_status_controller()-> 232 process_response_command.Execute(session);
235 set_last_process_commit_response_result(
236 process_response_command.Execute(session));
237 next_step = BUILD_AND_PROCESS_CONFLICT_SETS; 233 next_step = BUILD_AND_PROCESS_CONFLICT_SETS;
238 break; 234 break;
239 } 235 }
240 case BUILD_AND_PROCESS_CONFLICT_SETS: { 236 case BUILD_AND_PROCESS_CONFLICT_SETS: {
241 BuildAndProcessConflictSetsCommand build_process_conflict_sets; 237 BuildAndProcessConflictSetsCommand build_process_conflict_sets;
242 build_process_conflict_sets.Execute(session); 238 build_process_conflict_sets.Execute(session);
243 if (session->status_controller().conflict_sets_built()) 239 if (session->status_controller().conflict_sets_built())
244 next_step = SYNCER_END; 240 next_step = SYNCER_END;
245 else 241 else
246 next_step = RESOLVE_CONFLICTS; 242 next_step = RESOLVE_CONFLICTS;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 entry->Put(SERVER_CTIME, Time()); 348 entry->Put(SERVER_CTIME, Time());
353 entry->Put(SERVER_VERSION, 0); 349 entry->Put(SERVER_VERSION, 0);
354 entry->Put(SERVER_IS_DIR, false); 350 entry->Put(SERVER_IS_DIR, false);
355 entry->Put(SERVER_IS_DEL, false); 351 entry->Put(SERVER_IS_DEL, false);
356 entry->Put(IS_UNAPPLIED_UPDATE, false); 352 entry->Put(IS_UNAPPLIED_UPDATE, false);
357 entry->Put(SERVER_SPECIFICS, sync_pb::EntitySpecifics::default_instance()); 353 entry->Put(SERVER_SPECIFICS, sync_pb::EntitySpecifics::default_instance());
358 entry->Put(SERVER_POSITION_IN_PARENT, 0); 354 entry->Put(SERVER_POSITION_IN_PARENT, 0);
359 } 355 }
360 356
361 } // namespace browser_sync 357 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/extensions/platform_app_browsertest.cc ('k') | chrome/browser/ui/extensions/shell_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698