| 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" |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 const base::ListValue* args) { | 101 const base::ListValue* args) { |
| 102 DCHECK(args); | 102 DCHECK(args); |
| 103 GetExtensionStatusesAsDictionary( | 103 GetExtensionStatusesAsDictionary( |
| 104 profile_, | 104 profile_, |
| 105 base::Bind(&ExtensionStatusesHandler::DidGetExtensionStatuses, | 105 base::Bind(&ExtensionStatusesHandler::DidGetExtensionStatuses, |
| 106 weak_ptr_factory_.GetWeakPtr())); | 106 weak_ptr_factory_.GetWeakPtr())); |
| 107 } | 107 } |
| 108 | 108 |
| 109 void ExtensionStatusesHandler::DidGetExtensionStatuses( | 109 void ExtensionStatusesHandler::DidGetExtensionStatuses( |
| 110 const base::ListValue& list) { | 110 const base::ListValue& list) { |
| 111 web_ui()->CallJavascriptFunction("ExtensionStatuses.onGetExtensionStatuses", | 111 web_ui()->CallJavascriptFunctionUnsafe( |
| 112 list); | 112 "ExtensionStatuses.onGetExtensionStatuses", list); |
| 113 } | 113 } |
| 114 | 114 |
| 115 } // namespace syncfs_internals | 115 } // namespace syncfs_internals |
| OLD | NEW |