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

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

Issue 1995113002: Rename WebUI::CallJavascriptFunction to WebUI::CallJavascriptFunctionUnsafe (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
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/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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698