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

Side by Side Diff: chrome/browser/chromeos/drive/change_list_processor.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 (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/change_list_processor.h" 5 #include "chrome/browser/chromeos/drive/change_list_processor.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "base/synchronization/cancellation_flag.h" 9 #include "base/synchronization/cancellation_flag.h"
10 #include "chrome/browser/chromeos/drive/drive.pb.h" 10 #include "chrome/browser/chromeos/drive/drive.pb.h"
11 #include "chrome/browser/chromeos/drive/file_change.h" 11 #include "chrome/browser/chromeos/drive/file_change.h"
12 #include "chrome/browser/chromeos/drive/file_system_core_util.h" 12 #include "chrome/browser/chromeos/drive/file_system_core_util.h"
13 #include "chrome/browser/chromeos/drive/resource_entry_conversion.h" 13 #include "chrome/browser/chromeos/drive/resource_entry_conversion.h"
14 #include "chrome/browser/chromeos/drive/resource_metadata.h" 14 #include "chrome/browser/chromeos/drive/resource_metadata.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 class ChangeListToEntryMapUMAStats { 23 class ChangeListToEntryMapUMAStats {
24 public: 24 public:
25 ChangeListToEntryMapUMAStats() 25 ChangeListToEntryMapUMAStats()
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 if (!file_path.empty()) { 493 if (!file_path.empty()) {
494 FileChange::ChangeType type = entry.deleted() 494 FileChange::ChangeType type = entry.deleted()
495 ? FileChange::CHANGE_TYPE_DELETE 495 ? FileChange::CHANGE_TYPE_DELETE
496 : FileChange::CHANGE_TYPE_ADD_OR_UPDATE; 496 : FileChange::CHANGE_TYPE_ADD_OR_UPDATE;
497 changed_files_->Update(file_path, entry, type); 497 changed_files_->Update(file_path, entry, type);
498 } 498 }
499 } 499 }
500 500
501 } // namespace internal 501 } // namespace internal
502 } // namespace drive 502 } // namespace drive
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/change_list_loader_unittest.cc ('k') | chrome/browser/chromeos/drive/directory_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698