OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/jsmessage_box_handler_win.h" | 5 #include "chrome/browser/jsmessage_box_handler_win.h" |
6 | 6 |
| 7 #include "base/string_util.h" |
7 #include "chrome/browser/app_modal_dialog_queue.h" | 8 #include "chrome/browser/app_modal_dialog_queue.h" |
8 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
9 #include "chrome/browser/profile.h" | 10 #include "chrome/browser/profile.h" |
10 #include "chrome/browser/tab_contents/web_contents.h" | 11 #include "chrome/browser/tab_contents/web_contents.h" |
11 #include "chrome/common/gfx/text_elider.h" | 12 #include "chrome/common/gfx/text_elider.h" |
12 #include "chrome/common/l10n_util.h" | 13 #include "chrome/common/l10n_util.h" |
13 #include "chrome/common/notification_service.h" | 14 #include "chrome/common/notification_service.h" |
14 #include "chrome/common/notification_type.h" | 15 #include "chrome/common/notification_type.h" |
15 #include "chrome/common/pref_names.h" | 16 #include "chrome/common/pref_names.h" |
16 #include "chrome/common/pref_service.h" | 17 #include "chrome/common/pref_service.h" |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 web_contents_gone = true; | 201 web_contents_gone = true; |
201 | 202 |
202 if (web_contents_gone) { | 203 if (web_contents_gone) { |
203 web_contents_ = NULL; | 204 web_contents_ = NULL; |
204 | 205 |
205 // If the dialog is visible close it. | 206 // If the dialog is visible close it. |
206 if (dialog_) | 207 if (dialog_) |
207 dialog_->Close(); | 208 dialog_->Close(); |
208 } | 209 } |
209 } | 210 } |
OLD | NEW |