Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(822)

Side by Side Diff: chrome/browser/ui/webui/sync_file_system_internals/file_metadata_handler.cc

Issue 268413002: [SyncFS] Make DumpFiles async (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: work for a nit Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/webui/sync_file_system_internals/file_metadata_handler.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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(
76 DCHECK(files); 76 const base::ListValue& files) {
77 web_ui()->CallJavascriptFunction("FileMetadata.onGetFileMetadata", *files); 77 web_ui()->CallJavascriptFunction("FileMetadata.onGetFileMetadata",
78 files);
nhiroki 2014/05/13 03:26:20 nit: probably you don't have to add this line brea
peria 2014/05/13 03:51:29 Done.
78 } 79 }
79 80
80 } // namespace syncfs_internals 81 } // namespace syncfs_internals
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/sync_file_system_internals/file_metadata_handler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698