OLD | NEW |
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/extensions/file_manager/file_manager_event_rou
ter.h" | 5 #include "chrome/browser/chromeos/extensions/file_manager/file_manager_event_rou
ter.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/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/prefs/pref_change_registrar.h" | 10 #include "base/prefs/pref_change_registrar.h" |
11 #include "base/prefs/pref_service.h" | 11 #include "base/prefs/pref_service.h" |
12 #include "base/stl_util.h" | 12 #include "base/stl_util.h" |
13 #include "base/threading/sequenced_worker_pool.h" | 13 #include "base/threading/sequenced_worker_pool.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
| 15 #include "chrome/browser/chrome_notification_types.h" |
15 #include "chrome/browser/chromeos/drive/drive_integration_service.h" | 16 #include "chrome/browser/chromeos/drive/drive_integration_service.h" |
16 #include "chrome/browser/chromeos/drive/file_system_interface.h" | 17 #include "chrome/browser/chromeos/drive/file_system_interface.h" |
17 #include "chrome/browser/chromeos/drive/file_system_util.h" | 18 #include "chrome/browser/chromeos/drive/file_system_util.h" |
18 #include "chrome/browser/chromeos/extensions/file_manager/file_manager_notificat
ions.h" | 19 #include "chrome/browser/chromeos/extensions/file_manager/file_manager_notificat
ions.h" |
19 #include "chrome/browser/chromeos/extensions/file_manager/file_manager_util.h" | 20 #include "chrome/browser/chromeos/extensions/file_manager/file_manager_util.h" |
20 #include "chrome/browser/chromeos/login/login_display_host_impl.h" | 21 #include "chrome/browser/chromeos/login/login_display_host_impl.h" |
21 #include "chrome/browser/chromeos/login/screen_locker.h" | 22 #include "chrome/browser/chromeos/login/screen_locker.h" |
22 #include "chrome/browser/chromeos/net/connectivity_state_helper.h" | 23 #include "chrome/browser/chromeos/net/connectivity_state_helper.h" |
23 #include "chrome/browser/drive/drive_service_interface.h" | 24 #include "chrome/browser/drive/drive_service_interface.h" |
24 #include "chrome/browser/extensions/event_names.h" | 25 #include "chrome/browser/extensions/event_names.h" |
25 #include "chrome/browser/extensions/event_router.h" | 26 #include "chrome/browser/extensions/event_router.h" |
26 #include "chrome/browser/extensions/extension_service.h" | 27 #include "chrome/browser/extensions/extension_service.h" |
27 #include "chrome/browser/extensions/extension_system.h" | 28 #include "chrome/browser/extensions/extension_system.h" |
28 #include "chrome/browser/google_apis/task_util.h" | 29 #include "chrome/browser/google_apis/task_util.h" |
29 #include "chrome/browser/profiles/profile.h" | 30 #include "chrome/browser/profiles/profile.h" |
30 #include "chrome/common/chrome_notification_types.h" | |
31 #include "chrome/common/pref_names.h" | 31 #include "chrome/common/pref_names.h" |
32 #include "chromeos/login/login_state.h" | 32 #include "chromeos/login/login_state.h" |
33 #include "content/public/browser/browser_thread.h" | 33 #include "content/public/browser/browser_thread.h" |
34 #include "content/public/browser/notification_source.h" | 34 #include "content/public/browser/notification_source.h" |
35 #include "webkit/common/fileapi/file_system_types.h" | 35 #include "webkit/common/fileapi/file_system_types.h" |
36 #include "webkit/common/fileapi/file_system_util.h" | 36 #include "webkit/common/fileapi/file_system_util.h" |
37 | 37 |
38 using chromeos::disks::DiskMountManager; | 38 using chromeos::disks::DiskMountManager; |
39 using content::BrowserThread; | 39 using content::BrowserThread; |
40 using drive::DriveIntegrationService; | 40 using drive::DriveIntegrationService; |
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
980 base::FilePathWatcher* file_watcher) { | 980 base::FilePathWatcher* file_watcher) { |
981 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 981 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
982 | 982 |
983 if (file_watcher) { | 983 if (file_watcher) { |
984 file_watcher_ = file_watcher; | 984 file_watcher_ = file_watcher; |
985 callback.Run(true); | 985 callback.Run(true); |
986 } else { | 986 } else { |
987 callback.Run(false); | 987 callback.Run(false); |
988 } | 988 } |
989 } | 989 } |
OLD | NEW |