OLD | NEW |
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 "chrome/browser/ui/views/session_crashed_bubble_view.h" | 5 #include "chrome/browser/ui/views/session_crashed_bubble_view.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include "chrome/installer/util/google_update_settings.h" | 29 #include "chrome/installer/util/google_update_settings.h" |
30 #include "content/public/browser/browser_context.h" | 30 #include "content/public/browser/browser_context.h" |
31 #include "content/public/browser/browser_thread.h" | 31 #include "content/public/browser/browser_thread.h" |
32 #include "content/public/browser/notification_source.h" | 32 #include "content/public/browser/notification_source.h" |
33 #include "content/public/browser/web_contents.h" | 33 #include "content/public/browser/web_contents.h" |
34 #include "grit/chromium_strings.h" | 34 #include "grit/chromium_strings.h" |
35 #include "grit/generated_resources.h" | 35 #include "grit/generated_resources.h" |
36 #include "grit/google_chrome_strings.h" | 36 #include "grit/google_chrome_strings.h" |
37 #include "grit/ui_resources.h" | 37 #include "grit/ui_resources.h" |
38 #include "ui/base/l10n/l10n_util.h" | 38 #include "ui/base/l10n/l10n_util.h" |
39 #include "ui/base/resource/resource_bundle.h" | |
40 #include "ui/views/bubble/bubble_frame_view.h" | 39 #include "ui/views/bubble/bubble_frame_view.h" |
41 #include "ui/views/controls/button/checkbox.h" | 40 #include "ui/views/controls/button/checkbox.h" |
42 #include "ui/views/controls/button/label_button.h" | 41 #include "ui/views/controls/button/label_button.h" |
43 #include "ui/views/controls/label.h" | 42 #include "ui/views/controls/label.h" |
44 #include "ui/views/controls/separator.h" | 43 #include "ui/views/controls/separator.h" |
45 #include "ui/views/controls/styled_label.h" | 44 #include "ui/views/controls/styled_label.h" |
46 #include "ui/views/layout/grid_layout.h" | 45 #include "ui/views/layout/grid_layout.h" |
47 #include "ui/views/layout/layout_constants.h" | 46 #include "ui/views/layout/layout_constants.h" |
48 #include "ui/views/widget/widget.h" | 47 #include "ui/views/widget/widget.h" |
49 | 48 |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 GetWidget()->Close(); | 432 GetWidget()->Close(); |
434 } | 433 } |
435 | 434 |
436 bool ShowSessionCrashedBubble(Browser* browser) { | 435 bool ShowSessionCrashedBubble(Browser* browser) { |
437 if (IsBubbleUIEnabled()) { | 436 if (IsBubbleUIEnabled()) { |
438 SessionCrashedBubbleView::Show(browser); | 437 SessionCrashedBubbleView::Show(browser); |
439 return true; | 438 return true; |
440 } | 439 } |
441 return false; | 440 return false; |
442 } | 441 } |
OLD | NEW |