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