| 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/values.h" | 11 #include "base/values.h" |
| 12 #include "chrome/browser/extensions/extension_service.h" | 12 #include "chrome/browser/extensions/extension_service.h" |
| 13 #include "chrome/browser/extensions/extension_system.h" | 13 #include "chrome/browser/extensions/extension_system.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 "chrome/common/extensions/extension.h" | |
| 18 #include "content/public/browser/web_ui.h" | 17 #include "content/public/browser/web_ui.h" |
| 19 #include "content/public/browser/web_ui_data_source.h" | 18 #include "content/public/browser/web_ui_data_source.h" |
| 19 #include "extensions/common/extension.h" |
| 20 #include "grit/sync_file_system_internals_resources.h" | 20 #include "grit/sync_file_system_internals_resources.h" |
| 21 | 21 |
| 22 using sync_file_system::SyncFileSystemServiceFactory; | 22 using sync_file_system::SyncFileSystemServiceFactory; |
| 23 using sync_file_system::SyncServiceState; | 23 using sync_file_system::SyncServiceState; |
| 24 | 24 |
| 25 namespace syncfs_internals { | 25 namespace syncfs_internals { |
| 26 | 26 |
| 27 ExtensionStatusesHandler::ExtensionStatusesHandler(Profile* profile) | 27 ExtensionStatusesHandler::ExtensionStatusesHandler(Profile* profile) |
| 28 : profile_(profile) {} | 28 : profile_(profile) {} |
| 29 | 29 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 void ExtensionStatusesHandler::GetExtensionStatuses( | 72 void ExtensionStatusesHandler::GetExtensionStatuses( |
| 73 const base::ListValue* args) { | 73 const base::ListValue* args) { |
| 74 DCHECK(args); | 74 DCHECK(args); |
| 75 base::ListValue list; | 75 base::ListValue list; |
| 76 GetExtensionStatusesAsDictionary(profile_, &list); | 76 GetExtensionStatusesAsDictionary(profile_, &list); |
| 77 web_ui()->CallJavascriptFunction("ExtensionStatuses.onGetExtensionStatuses", | 77 web_ui()->CallJavascriptFunction("ExtensionStatuses.onGetExtensionStatuses", |
| 78 list); | 78 list); |
| 79 } | 79 } |
| 80 | 80 |
| 81 } // namespace syncfs_internals | 81 } // namespace syncfs_internals |
| OLD | NEW |