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

Side by Side Diff: chrome/browser/chromeos/drive/sync/entry_revert_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/entry_revert_performer.h" 5 #include "chrome/browser/chromeos/drive/sync/entry_revert_performer.h"
6 6
7 #include "chrome/browser/chromeos/drive/change_list_processor.h" 7 #include "chrome/browser/chromeos/drive/change_list_processor.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_change.h" 9 #include "chrome/browser/chromeos/drive/file_change.h"
10 #include "chrome/browser/chromeos/drive/file_system/operation_delegate.h" 10 #include "chrome/browser/chromeos/drive/file_system/operation_delegate.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/drive/drive_api_util.h" 14 #include "components/drive/drive_api_util.h"
15 #include "google_apis/drive/drive_api_parser.h" 15 #include "google_apis/drive/drive_api_parser.h"
16 16
17 namespace drive { 17 namespace drive {
18 namespace internal { 18 namespace internal {
19 namespace { 19 namespace {
20 20
21 FileError FinishRevert(ResourceMetadata* metadata, 21 FileError FinishRevert(ResourceMetadata* metadata,
22 const std::string& local_id, 22 const std::string& local_id,
23 google_apis::DriveApiErrorCode status, 23 google_apis::DriveApiErrorCode status,
24 scoped_ptr<google_apis::FileResource> file_resource, 24 scoped_ptr<google_apis::FileResource> file_resource,
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 DCHECK(thread_checker_.CalledOnValidThread()); 169 DCHECK(thread_checker_.CalledOnValidThread());
170 DCHECK(!callback.is_null()); 170 DCHECK(!callback.is_null());
171 171
172 delegate_->OnFileChangedByOperation(*changed_files); 172 delegate_->OnFileChangedByOperation(*changed_files);
173 173
174 callback.Run(error); 174 callback.Run(error);
175 } 175 }
176 176
177 } // namespace internal 177 } // namespace internal
178 } // namespace drive 178 } // namespace drive
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698