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

Side by Side Diff: chrome/browser/ui/webui/media/webrtc_logs_ui.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/media/webrtc_logs_ui.h" 5 #include "chrome/browser/ui/webui/media/webrtc_logs_ui.h"
6 6
7 #include <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 // inform that the time is unknown. 193 // inform that the time is unknown.
194 if (value_w.empty()) 194 if (value_w.empty())
195 value_w = base::string16(base::ASCIIToUTF16("(unknown time)")); 195 value_w = base::string16(base::ASCIIToUTF16("(unknown time)"));
196 upload->SetString("capture_time", value_w); 196 upload->SetString("capture_time", value_w);
197 197
198 upload_list.Append(std::move(upload)); 198 upload_list.Append(std::move(upload));
199 } 199 }
200 200
201 base::StringValue version(version_info::GetVersionNumber()); 201 base::StringValue version(version_info::GetVersionNumber());
202 202
203 web_ui()->CallJavascriptFunction("updateWebRtcLogsList", upload_list, 203 web_ui()->CallJavascriptFunctionUnsafe("updateWebRtcLogsList", upload_list,
204 version); 204 version);
205 } 205 }
206 206
207 } // namespace 207 } // namespace
208 208
209 /////////////////////////////////////////////////////////////////////////////// 209 ///////////////////////////////////////////////////////////////////////////////
210 // 210 //
211 // WebRtcLogsUI 211 // WebRtcLogsUI
212 // 212 //
213 /////////////////////////////////////////////////////////////////////////////// 213 ///////////////////////////////////////////////////////////////////////////////
214 214
215 WebRtcLogsUI::WebRtcLogsUI(content::WebUI* web_ui) : WebUIController(web_ui) { 215 WebRtcLogsUI::WebRtcLogsUI(content::WebUI* web_ui) : WebUIController(web_ui) {
216 Profile* profile = Profile::FromWebUI(web_ui); 216 Profile* profile = Profile::FromWebUI(web_ui);
217 web_ui->AddMessageHandler(new WebRtcLogsDOMHandler(profile)); 217 web_ui->AddMessageHandler(new WebRtcLogsDOMHandler(profile));
218 218
219 // Set up the chrome://webrtc-logs/ source. 219 // Set up the chrome://webrtc-logs/ source.
220 content::WebUIDataSource::Add(profile, CreateWebRtcLogsUIHTMLSource()); 220 content::WebUIDataSource::Add(profile, CreateWebRtcLogsUIHTMLSource());
221 } 221 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698