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

Side by Side Diff: chrome/browser/chromeos/drive/sync_client.cc

Issue 102133008: drive: Call OnDirectoryChanged from EntryRevertPerformer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chromeos/drive/sync/remove_performer_unittest.cc ('k') | no next file » | 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 "chrome/browser/chromeos/drive/sync_client.h" 5 #include "chrome/browser/chromeos/drive/sync_client.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/message_loop/message_loop_proxy.h" 10 #include "base/message_loop/message_loop_proxy.h"
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 scheduler, 146 scheduler,
147 metadata, 147 metadata,
148 cache, 148 cache,
149 temporary_file_directory)), 149 temporary_file_directory)),
150 update_operation_(new file_system::UpdateOperation(blocking_task_runner, 150 update_operation_(new file_system::UpdateOperation(blocking_task_runner,
151 observer, 151 observer,
152 scheduler, 152 scheduler,
153 metadata, 153 metadata,
154 cache)), 154 cache)),
155 entry_update_performer_(new EntryUpdatePerformer(blocking_task_runner, 155 entry_update_performer_(new EntryUpdatePerformer(blocking_task_runner,
156 observer,
156 scheduler, 157 scheduler,
157 metadata)), 158 metadata)),
158 delay_(base::TimeDelta::FromSeconds(kDelaySeconds)), 159 delay_(base::TimeDelta::FromSeconds(kDelaySeconds)),
159 long_delay_(base::TimeDelta::FromSeconds(kLongDelaySeconds)), 160 long_delay_(base::TimeDelta::FromSeconds(kLongDelaySeconds)),
160 weak_ptr_factory_(this) { 161 weak_ptr_factory_(this) {
161 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 162 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
162 } 163 }
163 164
164 SyncClient::~SyncClient() { 165 SyncClient::~SyncClient() {
165 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 166 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 break; 436 break;
436 default: 437 default:
437 LOG(WARNING) << "Failed to update " << local_id << ": " 438 LOG(WARNING) << "Failed to update " << local_id << ": "
438 << FileErrorToString(error); 439 << FileErrorToString(error);
439 } 440 }
440 } 441 }
441 } 442 }
442 443
443 } // namespace internal 444 } // namespace internal
444 } // namespace drive 445 } // namespace drive
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/sync/remove_performer_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698