| 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_browser_event_router.h" |    5 #include "chrome/browser/chromeos/extensions/file_browser_event_router.h" | 
|    6  |    6  | 
|    7 #include "base/bind.h" |    7 #include "base/bind.h" | 
|    8 #include "base/json/json_writer.h" |    8 #include "base/json/json_writer.h" | 
|    9 #include "base/message_loop.h" |    9 #include "base/message_loop.h" | 
|   10 #include "base/stl_util.h" |   10 #include "base/stl_util.h" | 
|   11 #include "base/values.h" |   11 #include "base/values.h" | 
 |   12 #include "chrome/browser/api/prefs/pref_change_registrar.h" | 
|   12 #include "chrome/browser/chromeos/cros/cros_library.h" |   13 #include "chrome/browser/chromeos/cros/cros_library.h" | 
|   13 #include "chrome/browser/chromeos/extensions/file_browser_notifications.h" |   14 #include "chrome/browser/chromeos/extensions/file_browser_notifications.h" | 
|   14 #include "chrome/browser/chromeos/extensions/file_manager_util.h" |   15 #include "chrome/browser/chromeos/extensions/file_manager_util.h" | 
|   15 #include "chrome/browser/chromeos/gdata/gdata_documents_service.h" |   16 #include "chrome/browser/chromeos/gdata/gdata_documents_service.h" | 
|   16 #include "chrome/browser/chromeos/gdata/gdata_system_service.h" |   17 #include "chrome/browser/chromeos/gdata/gdata_system_service.h" | 
|   17 #include "chrome/browser/chromeos/gdata/gdata_util.h" |   18 #include "chrome/browser/chromeos/gdata/gdata_util.h" | 
|   18 #include "chrome/browser/chromeos/login/base_login_display_host.h" |   19 #include "chrome/browser/chromeos/login/base_login_display_host.h" | 
|   19 #include "chrome/browser/chromeos/login/screen_locker.h" |   20 #include "chrome/browser/chromeos/login/screen_locker.h" | 
|   20 #include "chrome/browser/chromeos/login/user_manager.h" |   21 #include "chrome/browser/chromeos/login/user_manager.h" | 
|   21 #include "chrome/browser/extensions/event_names.h" |   22 #include "chrome/browser/extensions/event_names.h" | 
|   22 #include "chrome/browser/extensions/event_router.h" |   23 #include "chrome/browser/extensions/event_router.h" | 
|   23 #include "chrome/browser/extensions/extension_service.h" |   24 #include "chrome/browser/extensions/extension_service.h" | 
|   24 #include "chrome/browser/prefs/pref_change_registrar.h" |  | 
|   25 #include "chrome/browser/prefs/pref_service.h" |   25 #include "chrome/browser/prefs/pref_service.h" | 
|   26 #include "chrome/browser/profiles/profile.h" |   26 #include "chrome/browser/profiles/profile.h" | 
|   27 #include "chrome/browser/profiles/profile_dependency_manager.h" |   27 #include "chrome/browser/profiles/profile_dependency_manager.h" | 
|   28 #include "chrome/common/chrome_notification_types.h" |   28 #include "chrome/common/chrome_notification_types.h" | 
|   29 #include "chrome/common/pref_names.h" |   29 #include "chrome/common/pref_names.h" | 
|   30 #include "content/public/browser/notification_source.h" |   30 #include "content/public/browser/notification_source.h" | 
|   31 #include "grit/generated_resources.h" |   31 #include "grit/generated_resources.h" | 
|   32 #include "ui/base/l10n/l10n_util.h" |   32 #include "ui/base/l10n/l10n_util.h" | 
|   33 #include "webkit/fileapi/file_system_types.h" |   33 #include "webkit/fileapi/file_system_types.h" | 
|   34 #include "webkit/fileapi/file_system_util.h" |   34 #include "webkit/fileapi/file_system_util.h" | 
| (...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  861   return scoped_refptr<RefcountedProfileKeyedService>( |  861   return scoped_refptr<RefcountedProfileKeyedService>( | 
|  862       new FileBrowserEventRouter(profile)); |  862       new FileBrowserEventRouter(profile)); | 
|  863 } |  863 } | 
|  864  |  864  | 
|  865 bool FileBrowserEventRouterFactory::ServiceHasOwnInstanceInIncognito() { |  865 bool FileBrowserEventRouterFactory::ServiceHasOwnInstanceInIncognito() { | 
|  866   // Explicitly and always allow this router in guest login mode.   see |  866   // Explicitly and always allow this router in guest login mode.   see | 
|  867   // chrome/browser/profiles/profile_keyed_base_factory.h comment |  867   // chrome/browser/profiles/profile_keyed_base_factory.h comment | 
|  868   // for the details. |  868   // for the details. | 
|  869   return true; |  869   return true; | 
|  870 } |  870 } | 
| OLD | NEW |