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

Side by Side Diff: content/shell/browser/layout_test/layout_test_javascript_dialog_manager.cc

Issue 1841653003: Drop |languages| from {Format,Elide}Url* and IDNToUnicode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo in elide_url.cc Created 4 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "content/shell/browser/layout_test/layout_test_javascript_dialog_manage r.h" 5 #include "content/shell/browser/layout_test/layout_test_javascript_dialog_manage r.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "content/public/browser/web_contents.h" 10 #include "content/public/browser/web_contents.h"
11 #include "content/shell/browser/layout_test/blink_test_controller.h" 11 #include "content/shell/browser/layout_test/blink_test_controller.h"
12 #include "content/shell/browser/shell_javascript_dialog.h" 12 #include "content/shell/browser/shell_javascript_dialog.h"
13 #include "content/shell/common/shell_switches.h" 13 #include "content/shell/common/shell_switches.h"
14 14
15 namespace content { 15 namespace content {
16 16
17 LayoutTestJavaScriptDialogManager::LayoutTestJavaScriptDialogManager() { 17 LayoutTestJavaScriptDialogManager::LayoutTestJavaScriptDialogManager() {
18 } 18 }
19 19
20 LayoutTestJavaScriptDialogManager::~LayoutTestJavaScriptDialogManager() { 20 LayoutTestJavaScriptDialogManager::~LayoutTestJavaScriptDialogManager() {
21 } 21 }
22 22
23 void LayoutTestJavaScriptDialogManager::RunJavaScriptDialog( 23 void LayoutTestJavaScriptDialogManager::RunJavaScriptDialog(
24 WebContents* web_contents, 24 WebContents* web_contents,
25 const GURL& origin_url, 25 const GURL& origin_url,
26 const std::string& accept_lang,
27 JavaScriptMessageType javascript_message_type, 26 JavaScriptMessageType javascript_message_type,
28 const base::string16& message_text, 27 const base::string16& message_text,
29 const base::string16& default_prompt_text, 28 const base::string16& default_prompt_text,
30 const DialogClosedCallback& callback, 29 const DialogClosedCallback& callback,
31 bool* did_suppress_message) { 30 bool* did_suppress_message) {
32 callback.Run(true, base::string16()); 31 callback.Run(true, base::string16());
33 return; 32 return;
34 } 33 }
35 34
36 void LayoutTestJavaScriptDialogManager::RunBeforeUnloadDialog( 35 void LayoutTestJavaScriptDialogManager::RunBeforeUnloadDialog(
37 WebContents* web_contents, 36 WebContents* web_contents,
38 bool is_reload, 37 bool is_reload,
39 const DialogClosedCallback& callback) { 38 const DialogClosedCallback& callback) {
40 callback.Run(true, base::string16()); 39 callback.Run(true, base::string16());
41 return; 40 return;
42 } 41 }
43 42
44 } // namespace content 43 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698