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/file_metadata_handl
er.h" | 5 #include "chrome/browser/ui/webui/sync_file_system_internals/file_metadata_handl
er.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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 weak_factory_.GetWeakPtr())); | 65 weak_factory_.GetWeakPtr())); |
66 } | 66 } |
67 | 67 |
68 void FileMetadataHandler::GetExtensions(const base::ListValue* args) { | 68 void FileMetadataHandler::GetExtensions(const base::ListValue* args) { |
69 DCHECK(args); | 69 DCHECK(args); |
70 base::ListValue list; | 70 base::ListValue list; |
71 ExtensionStatusesHandler::GetExtensionStatusesAsDictionary(profile_, &list); | 71 ExtensionStatusesHandler::GetExtensionStatusesAsDictionary(profile_, &list); |
72 web_ui()->CallJavascriptFunction("FileMetadata.onGetExtensions", list); | 72 web_ui()->CallJavascriptFunction("FileMetadata.onGetExtensions", list); |
73 } | 73 } |
74 | 74 |
75 void FileMetadataHandler::DidGetFileMetadata(const base::ListValue* files) { | 75 void FileMetadataHandler::DidGetFileMetadata(const base::ListValue& files) { |
76 DCHECK(files); | 76 web_ui()->CallJavascriptFunction("FileMetadata.onGetFileMetadata", files); |
77 web_ui()->CallJavascriptFunction("FileMetadata.onGetFileMetadata", *files); | |
78 } | 77 } |
79 | 78 |
80 } // namespace syncfs_internals | 79 } // namespace syncfs_internals |
OLD | NEW |