OLD | NEW |
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 "chrome/browser/sync_file_system/local_file_sync_service.h" | 5 #include "chrome/browser/sync_file_system/local_file_sync_service.h" |
6 | 6 |
7 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
8 #include "chrome/browser/extensions/extension_service.h" | 8 #include "chrome/browser/extensions/extension_service.h" |
9 #include "chrome/browser/extensions/extension_system.h" | 9 #include "chrome/browser/extensions/extension_system.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 return; | 330 return; |
331 } | 331 } |
332 | 332 |
333 DVLOG(1) << "ProcessLocalChange: " << sync_file_info.url.DebugString() | 333 DVLOG(1) << "ProcessLocalChange: " << sync_file_info.url.DebugString() |
334 << " change:" << sync_file_info.changes.front().DebugString(); | 334 << " change:" << sync_file_info.changes.front().DebugString(); |
335 | 335 |
336 DCHECK(processor); | 336 DCHECK(processor); |
337 processor->ApplyLocalChange( | 337 processor->ApplyLocalChange( |
338 sync_file_info.changes.front(), | 338 sync_file_info.changes.front(), |
339 sync_file_info.local_file_path, | 339 sync_file_info.local_file_path, |
340 sync_file_info.metadata, | |
341 sync_file_info.url, | 340 sync_file_info.url, |
342 base::Bind(&LocalFileSyncService::ProcessNextChangeForURL, | 341 base::Bind(&LocalFileSyncService::ProcessNextChangeForURL, |
343 AsWeakPtr(), processor, | 342 AsWeakPtr(), processor, |
344 sync_file_info, | 343 sync_file_info, |
345 sync_file_info.changes.front(), | 344 sync_file_info.changes.front(), |
346 sync_file_info.changes.PopAndGetNewList())); | 345 sync_file_info.changes.PopAndGetNewList())); |
347 } | 346 } |
348 | 347 |
349 void LocalFileSyncService::ProcessNextChangeForURL( | 348 void LocalFileSyncService::ProcessNextChangeForURL( |
350 LocalChangeProcessor* processor, | 349 LocalChangeProcessor* processor, |
(...skipping 30 matching lines...) Expand all Loading... |
381 return; | 380 return; |
382 } | 381 } |
383 RunLocalSyncCallback(status, url); | 382 RunLocalSyncCallback(status, url); |
384 return; | 383 return; |
385 } | 384 } |
386 | 385 |
387 DCHECK(processor); | 386 DCHECK(processor); |
388 processor->ApplyLocalChange( | 387 processor->ApplyLocalChange( |
389 changes.front(), | 388 changes.front(), |
390 sync_file_info.local_file_path, | 389 sync_file_info.local_file_path, |
391 sync_file_info.metadata, | |
392 url, | 390 url, |
393 base::Bind(&LocalFileSyncService::ProcessNextChangeForURL, | 391 base::Bind(&LocalFileSyncService::ProcessNextChangeForURL, |
394 AsWeakPtr(), processor, sync_file_info, | 392 AsWeakPtr(), processor, sync_file_info, |
395 changes.front(), changes.PopAndGetNewList())); | 393 changes.front(), changes.PopAndGetNewList())); |
396 } | 394 } |
397 | 395 |
398 } // namespace sync_file_system | 396 } // namespace sync_file_system |
OLD | NEW |