| OLD | NEW |
| 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/ui/webui/sync_file_system_internals/sync_file_system_in
ternals_handler.h" | 5 #include "chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_in
ternals_handler.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| 11 #include "base/values.h" | 11 #include "base/values.h" |
| 12 #include "chrome/browser/drive/drive_notification_manager.h" | |
| 13 #include "chrome/browser/drive/drive_notification_manager_factory.h" | 12 #include "chrome/browser/drive/drive_notification_manager_factory.h" |
| 14 #include "chrome/browser/extensions/api/sync_file_system/sync_file_system_api_he
lpers.h" | 13 #include "chrome/browser/extensions/api/sync_file_system/sync_file_system_api_he
lpers.h" |
| 15 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 16 #include "chrome/browser/sync_file_system/logger.h" | 15 #include "chrome/browser/sync_file_system/logger.h" |
| 17 #include "chrome/browser/sync_file_system/sync_file_system_service.h" | 16 #include "chrome/browser/sync_file_system/sync_file_system_service.h" |
| 18 #include "chrome/browser/sync_file_system/sync_file_system_service_factory.h" | 17 #include "chrome/browser/sync_file_system/sync_file_system_service_factory.h" |
| 19 #include "chrome/browser/sync_file_system/sync_service_state.h" | 18 #include "chrome/browser/sync_file_system/sync_service_state.h" |
| 20 #include "chrome/common/extensions/api/sync_file_system.h" | 19 #include "chrome/common/extensions/api/sync_file_system.h" |
| 20 #include "components/drive/drive_notification_manager.h" |
| 21 #include "content/public/browser/storage_partition.h" | 21 #include "content/public/browser/storage_partition.h" |
| 22 #include "content/public/browser/web_ui.h" | 22 #include "content/public/browser/web_ui.h" |
| 23 #include "google_apis/drive/time_util.h" | 23 #include "google_apis/drive/time_util.h" |
| 24 | 24 |
| 25 using drive::EventLogger; | 25 using drive::EventLogger; |
| 26 using sync_file_system::SyncFileSystemServiceFactory; | 26 using sync_file_system::SyncFileSystemServiceFactory; |
| 27 using sync_file_system::SyncServiceState; | 27 using sync_file_system::SyncServiceState; |
| 28 | 28 |
| 29 namespace syncfs_internals { | 29 namespace syncfs_internals { |
| 30 | 30 |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 DCHECK(sync_service->task_logger()); | 181 DCHECK(sync_service->task_logger()); |
| 182 const sync_file_system::TaskLogger::LogList& log = | 182 const sync_file_system::TaskLogger::LogList& log = |
| 183 sync_service->task_logger()->GetLog(); | 183 sync_service->task_logger()->GetLog(); |
| 184 | 184 |
| 185 for (sync_file_system::TaskLogger::LogList::const_iterator itr = log.begin(); | 185 for (sync_file_system::TaskLogger::LogList::const_iterator itr = log.begin(); |
| 186 itr != log.end(); ++itr) | 186 itr != log.end(); ++itr) |
| 187 OnLogRecorded(**itr); | 187 OnLogRecorded(**itr); |
| 188 } | 188 } |
| 189 | 189 |
| 190 } // namespace syncfs_internals | 190 } // namespace syncfs_internals |
| OLD | NEW |