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

Side by Side Diff: chrome/browser/chromeos/drive/sync/remove_performer.cc

Issue 1190203002: Move (most of) chrome/browser/drive into components/drive/service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing... Created 5 years, 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/remove_performer.h" 5 #include "chrome/browser/chromeos/drive/sync/remove_performer.h"
6 6
7 #include "base/sequenced_task_runner.h" 7 #include "base/sequenced_task_runner.h"
8 #include "chrome/browser/chromeos/drive/drive.pb.h" 8 #include "chrome/browser/chromeos/drive/drive.pb.h"
9 #include "chrome/browser/chromeos/drive/file_system/operation_delegate.h" 9 #include "chrome/browser/chromeos/drive/file_system/operation_delegate.h"
10 #include "chrome/browser/chromeos/drive/file_system_core_util.h" 10 #include "chrome/browser/chromeos/drive/file_system_core_util.h"
11 #include "chrome/browser/chromeos/drive/job_scheduler.h" 11 #include "chrome/browser/chromeos/drive/job_scheduler.h"
12 #include "chrome/browser/chromeos/drive/resource_entry_conversion.h" 12 #include "chrome/browser/chromeos/drive/resource_entry_conversion.h"
13 #include "chrome/browser/chromeos/drive/resource_metadata.h" 13 #include "chrome/browser/chromeos/drive/resource_metadata.h"
14 #include "chrome/browser/chromeos/drive/sync/entry_revert_performer.h" 14 #include "chrome/browser/chromeos/drive/sync/entry_revert_performer.h"
15 #include "chrome/browser/drive/drive_api_util.h" 15 #include "components/drive/drive_api_util.h"
16 #include "google_apis/drive/drive_api_parser.h" 16 #include "google_apis/drive/drive_api_parser.h"
17 17
18 namespace drive { 18 namespace drive {
19 namespace internal { 19 namespace internal {
20 20
21 namespace { 21 namespace {
22 22
23 // Updates local metadata and after remote unparenting. 23 // Updates local metadata and after remote unparenting.
24 FileError UpdateLocalStateAfterUnparent(ResourceMetadata* metadata, 24 FileError UpdateLocalStateAfterUnparent(ResourceMetadata* metadata,
25 const std::string& local_id) { 25 const std::string& local_id) {
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 246
247 base::PostTaskAndReplyWithResult( 247 base::PostTaskAndReplyWithResult(
248 blocking_task_runner_.get(), 248 blocking_task_runner_.get(),
249 FROM_HERE, 249 FROM_HERE,
250 base::Bind(&UpdateLocalStateAfterUnparent, metadata_, local_id), 250 base::Bind(&UpdateLocalStateAfterUnparent, metadata_, local_id),
251 callback); 251 callback);
252 } 252 }
253 253
254 } // namespace internal 254 } // namespace internal
255 } // namespace drive 255 } // namespace drive
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698