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

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

Issue 12211105: Move remaining non-test, non-Chrome-specific Prefs code to base/prefs/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, merge to LKGR. Created 7 years, 10 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 | Annotate | Revision Log
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/drive_file_system.h" 5 #include "chrome/browser/chromeos/drive/drive_file_system.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/json/json_file_value_serializer.h" 9 #include "base/json/json_file_value_serializer.h"
10 #include "base/message_loop_proxy.h" 10 #include "base/message_loop_proxy.h"
11 #include "base/metrics/histogram.h" 11 #include "base/metrics/histogram.h"
12 #include "base/platform_file.h" 12 #include "base/platform_file.h"
13 #include "base/prefs/pref_service.h"
13 #include "base/prefs/public/pref_change_registrar.h" 14 #include "base/prefs/public/pref_change_registrar.h"
14 #include "base/stringprintf.h" 15 #include "base/stringprintf.h"
15 #include "base/threading/sequenced_worker_pool.h" 16 #include "base/threading/sequenced_worker_pool.h"
16 #include "base/values.h" 17 #include "base/values.h"
17 #include "chrome/browser/chromeos/drive/drive.pb.h" 18 #include "chrome/browser/chromeos/drive/drive.pb.h"
18 #include "chrome/browser/chromeos/drive/drive_cache.h" 19 #include "chrome/browser/chromeos/drive/drive_cache.h"
19 #include "chrome/browser/chromeos/drive/drive_feed_loader.h" 20 #include "chrome/browser/chromeos/drive/drive_feed_loader.h"
20 #include "chrome/browser/chromeos/drive/drive_feed_processor.h" 21 #include "chrome/browser/chromeos/drive/drive_feed_processor.h"
21 #include "chrome/browser/chromeos/drive/drive_file_system_observer.h" 22 #include "chrome/browser/chromeos/drive/drive_file_system_observer.h"
22 #include "chrome/browser/chromeos/drive/drive_file_system_util.h" 23 #include "chrome/browser/chromeos/drive/drive_file_system_util.h"
23 #include "chrome/browser/chromeos/drive/drive_scheduler.h" 24 #include "chrome/browser/chromeos/drive/drive_scheduler.h"
24 #include "chrome/browser/chromeos/drive/resource_entry_conversion.h" 25 #include "chrome/browser/chromeos/drive/resource_entry_conversion.h"
25 #include "chrome/browser/google_apis/drive_api_parser.h" 26 #include "chrome/browser/google_apis/drive_api_parser.h"
26 #include "chrome/browser/google_apis/drive_api_util.h" 27 #include "chrome/browser/google_apis/drive_api_util.h"
27 #include "chrome/browser/google_apis/drive_service_interface.h" 28 #include "chrome/browser/google_apis/drive_service_interface.h"
28 #include "chrome/browser/google_apis/drive_uploader.h" 29 #include "chrome/browser/google_apis/drive_uploader.h"
29 #include "chrome/browser/prefs/pref_service.h"
30 #include "chrome/browser/profiles/profile.h" 30 #include "chrome/browser/profiles/profile.h"
31 #include "chrome/common/chrome_notification_types.h" 31 #include "chrome/common/chrome_notification_types.h"
32 #include "chrome/common/pref_names.h" 32 #include "chrome/common/pref_names.h"
33 #include "content/public/browser/browser_thread.h" 33 #include "content/public/browser/browser_thread.h"
34 #include "content/public/browser/notification_details.h" 34 #include "content/public/browser/notification_details.h"
35 35
36 using content::BrowserThread; 36 using content::BrowserThread;
37 37
38 namespace drive { 38 namespace drive {
39 namespace { 39 namespace {
(...skipping 1659 matching lines...) Expand 10 before | Expand all | Expand 10 after
1699 return; 1699 return;
1700 } 1700 }
1701 1701
1702 PlatformFileInfoProto entry_file_info; 1702 PlatformFileInfoProto entry_file_info;
1703 util::ConvertPlatformFileInfoToProto(*file_info, &entry_file_info); 1703 util::ConvertPlatformFileInfoToProto(*file_info, &entry_file_info);
1704 *entry_proto->mutable_file_info() = entry_file_info; 1704 *entry_proto->mutable_file_info() = entry_file_info;
1705 callback.Run(DRIVE_FILE_OK, entry_proto.Pass()); 1705 callback.Run(DRIVE_FILE_OK, entry_proto.Pass());
1706 } 1706 }
1707 1707
1708 } // namespace drive 1708 } // namespace drive
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/display/display_preferences.cc ('k') | chrome/browser/chromeos/drive/drive_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698