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

Side by Side Diff: chrome/browser/ui/webui/sync_file_system_internals/dump_database_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/dump_database_handl er.h" 5 #include "chrome/browser/ui/webui/sync_file_system_internals/dump_database_handl er.h"
6 6
7 #include "chrome/browser/profiles/profile.h" 7 #include "chrome/browser/profiles/profile.h"
8 #include "chrome/browser/sync_file_system/sync_file_system_service.h" 8 #include "chrome/browser/sync_file_system/sync_file_system_service.h"
9 #include "chrome/browser/sync_file_system/sync_file_system_service_factory.h" 9 #include "chrome/browser/sync_file_system/sync_file_system_service_factory.h"
10 #include "content/public/browser/web_ui.h" 10 #include "content/public/browser/web_ui.h"
(...skipping 19 matching lines...) Expand all
30 sync_file_system::SyncFileSystemService* sync_service = 30 sync_file_system::SyncFileSystemService* sync_service =
31 SyncFileSystemServiceFactory::GetForProfile(profile_); 31 SyncFileSystemServiceFactory::GetForProfile(profile_);
32 if (sync_service) { 32 if (sync_service) {
33 sync_service->DumpDatabase( 33 sync_service->DumpDatabase(
34 base::Bind(&DumpDatabaseHandler::DidGetDatabaseDump, 34 base::Bind(&DumpDatabaseHandler::DidGetDatabaseDump,
35 base::Unretained(this))); 35 base::Unretained(this)));
36 } 36 }
37 } 37 }
38 38
39 void DumpDatabaseHandler::DidGetDatabaseDump(const base::ListValue& list) { 39 void DumpDatabaseHandler::DidGetDatabaseDump(const base::ListValue& list) {
40 web_ui()->CallJavascriptFunction("DumpDatabase.onGetDatabaseDump", list); 40 web_ui()->CallJavascriptFunctionUnsafe("DumpDatabase.onGetDatabaseDump",
41 list);
41 } 42 }
42 43
43 } // namespace syncfs_internals 44 } // namespace syncfs_internals
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698