OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/views/hung_renderer_view.h" | 5 #include "chrome/browser/ui/views/hung_renderer_view.h" |
6 | 6 |
7 #include "base/i18n/rtl.h" | 7 #include "base/i18n/rtl.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "build/build_config.h" |
9 #include "chrome/browser/platform_util.h" | 10 #include "chrome/browser/platform_util.h" |
10 #include "chrome/browser/ui/browser_finder.h" | 11 #include "chrome/browser/ui/browser_finder.h" |
11 #include "chrome/browser/ui/chrome_web_modal_dialog_manager_delegate.h" | 12 #include "chrome/browser/ui/chrome_web_modal_dialog_manager_delegate.h" |
12 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" | 13 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" |
13 #include "chrome/browser/ui/tab_contents/tab_contents_iterator.h" | 14 #include "chrome/browser/ui/tab_contents/tab_contents_iterator.h" |
14 #include "chrome/common/chrome_constants.h" | 15 #include "chrome/common/chrome_constants.h" |
15 #include "chrome/common/logging_chrome.h" | 16 #include "chrome/common/logging_chrome.h" |
16 #include "chrome/grit/generated_resources.h" | 17 #include "chrome/grit/generated_resources.h" |
17 #include "components/constrained_window/constrained_window_views.h" | 18 #include "components/constrained_window/constrained_window_views.h" |
18 #include "components/favicon/content/content_favicon_driver.h" | 19 #include "components/favicon/content/content_favicon_driver.h" |
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 | 462 |
462 // static | 463 // static |
463 void HungRendererDialogView::InitClass() { | 464 void HungRendererDialogView::InitClass() { |
464 static bool initialized = false; | 465 static bool initialized = false; |
465 if (!initialized) { | 466 if (!initialized) { |
466 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); | 467 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); |
467 frozen_icon_ = rb.GetImageSkiaNamed(IDR_FROZEN_TAB_ICON); | 468 frozen_icon_ = rb.GetImageSkiaNamed(IDR_FROZEN_TAB_ICON); |
468 initialized = true; | 469 initialized = true; |
469 } | 470 } |
470 } | 471 } |
OLD | NEW |