OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/gtk/external_protocol_dialog_gtk.h" | 5 #include "chrome/browser/ui/gtk/external_protocol_dialog_gtk.h" |
6 | 6 |
7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "app/l10n_util.h" | 11 #include "app/l10n_util.h" |
12 #include "app/text_elider.h" | 12 #include "app/text_elider.h" |
| 13 #include "base/message_loop.h" |
13 #include "base/metrics/histogram.h" | 14 #include "base/metrics/histogram.h" |
14 #include "base/message_loop.h" | |
15 #include "base/string_util.h" | 15 #include "base/string_util.h" |
16 #include "base/utf_string_conversions.h" | 16 #include "base/utf_string_conversions.h" |
17 #include "chrome/browser/external_protocol_handler.h" | 17 #include "chrome/browser/external_protocol_handler.h" |
18 #include "chrome/browser/gtk/gtk_util.h" | |
19 #include "chrome/browser/tab_contents/tab_util.h" | 18 #include "chrome/browser/tab_contents/tab_util.h" |
| 19 #include "chrome/browser/ui/gtk/gtk_util.h" |
20 #include "grit/chromium_strings.h" | 20 #include "grit/chromium_strings.h" |
21 #include "grit/generated_resources.h" | 21 #include "grit/generated_resources.h" |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 const int kMessageWidth = 400; | 25 const int kMessageWidth = 400; |
26 | 26 |
27 } // namespace | 27 } // namespace |
28 | 28 |
29 /////////////////////////////////////////////////////////////////////////////// | 29 /////////////////////////////////////////////////////////////////////////////// |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 if (response == GTK_RESPONSE_ACCEPT) { | 124 if (response == GTK_RESPONSE_ACCEPT) { |
125 UMA_HISTOGRAM_LONG_TIMES("clickjacking.launch_url", | 125 UMA_HISTOGRAM_LONG_TIMES("clickjacking.launch_url", |
126 base::TimeTicks::Now() - creation_time_); | 126 base::TimeTicks::Now() - creation_time_); |
127 | 127 |
128 ExternalProtocolHandler::LaunchUrlWithoutSecurityCheck(url_); | 128 ExternalProtocolHandler::LaunchUrlWithoutSecurityCheck(url_); |
129 } | 129 } |
130 | 130 |
131 gtk_widget_destroy(dialog_); | 131 gtk_widget_destroy(dialog_); |
132 delete this; | 132 delete this; |
133 } | 133 } |
OLD | NEW |