| 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/extension_statuses_
handler.h" | 5 #include "chrome/browser/ui/webui/sync_file_system_internals/extension_statuses_
handler.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 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/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "base/values.h" | 12 #include "base/values.h" |
| 13 #include "chrome/browser/extensions/extension_service.h" | 13 #include "chrome/browser/extensions/extension_service.h" |
| 14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/browser/sync_file_system/sync_file_system_service.h" | 15 #include "chrome/browser/sync_file_system/sync_file_system_service.h" |
| 16 #include "chrome/browser/sync_file_system/sync_file_system_service_factory.h" | 16 #include "chrome/browser/sync_file_system/sync_file_system_service_factory.h" |
| 17 #include "content/public/browser/web_ui.h" | 17 #include "content/public/browser/web_ui.h" |
| 18 #include "content/public/browser/web_ui_data_source.h" | 18 #include "content/public/browser/web_ui_data_source.h" |
| 19 #include "extensions/browser/extension_system.h" | 19 #include "extensions/browser/extension_system.h" |
| 20 #include "extensions/common/extension.h" | 20 #include "extensions/common/extension.h" |
| 21 #include "grit/sync_file_system_internals_resources.h" | |
| 22 | 21 |
| 23 using sync_file_system::SyncFileSystemServiceFactory; | 22 using sync_file_system::SyncFileSystemServiceFactory; |
| 24 using sync_file_system::SyncServiceState; | 23 using sync_file_system::SyncServiceState; |
| 25 | 24 |
| 26 namespace syncfs_internals { | 25 namespace syncfs_internals { |
| 27 | 26 |
| 28 namespace { | 27 namespace { |
| 29 | 28 |
| 30 void ConvertExtensionStatusToDictionary( | 29 void ConvertExtensionStatusToDictionary( |
| 31 const base::WeakPtr<ExtensionService>& extension_service, | 30 const base::WeakPtr<ExtensionService>& extension_service, |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 weak_ptr_factory_.GetWeakPtr())); | 106 weak_ptr_factory_.GetWeakPtr())); |
| 108 } | 107 } |
| 109 | 108 |
| 110 void ExtensionStatusesHandler::DidGetExtensionStatuses( | 109 void ExtensionStatusesHandler::DidGetExtensionStatuses( |
| 111 const base::ListValue& list) { | 110 const base::ListValue& list) { |
| 112 web_ui()->CallJavascriptFunction("ExtensionStatuses.onGetExtensionStatuses", | 111 web_ui()->CallJavascriptFunction("ExtensionStatuses.onGetExtensionStatuses", |
| 113 list); | 112 list); |
| 114 } | 113 } |
| 115 | 114 |
| 116 } // namespace syncfs_internals | 115 } // namespace syncfs_internals |
| OLD | NEW |