| 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 <stddef.h> |
| 8 |
| 7 #include <string> | 9 #include <string> |
| 8 #include <vector> | 10 #include <vector> |
| 9 | 11 |
| 10 #include "base/bind.h" | 12 #include "base/bind.h" |
| 11 #include "base/bind_helpers.h" | 13 #include "base/bind_helpers.h" |
| 12 #include "base/command_line.h" | 14 #include "base/command_line.h" |
| 15 #include "base/macros.h" |
| 13 #include "base/metrics/field_trial.h" | 16 #include "base/metrics/field_trial.h" |
| 14 #include "base/metrics/histogram.h" | 17 #include "base/metrics/histogram.h" |
| 15 #include "base/prefs/pref_service.h" | 18 #include "base/prefs/pref_service.h" |
| 16 #include "base/strings/string_util.h" | 19 #include "base/strings/string_util.h" |
| 20 #include "build/build_config.h" |
| 17 #include "chrome/browser/browser_process.h" | 21 #include "chrome/browser/browser_process.h" |
| 18 #include "chrome/browser/chrome_notification_types.h" | 22 #include "chrome/browser/chrome_notification_types.h" |
| 19 #include "chrome/browser/metrics/metrics_reporting_state.h" | 23 #include "chrome/browser/metrics/metrics_reporting_state.h" |
| 20 #include "chrome/browser/sessions/session_restore.h" | 24 #include "chrome/browser/sessions/session_restore.h" |
| 21 #include "chrome/browser/ui/browser_list.h" | 25 #include "chrome/browser/ui/browser_list.h" |
| 22 #include "chrome/browser/ui/browser_list_observer.h" | 26 #include "chrome/browser/ui/browser_list_observer.h" |
| 23 #include "chrome/browser/ui/startup/startup_browser_creator_impl.h" | 27 #include "chrome/browser/ui/startup/startup_browser_creator_impl.h" |
| 24 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 28 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 25 #include "chrome/browser/ui/views/frame/browser_view.h" | 29 #include "chrome/browser/ui/views/frame/browser_view.h" |
| 26 #include "chrome/browser/ui/views/toolbar/app_menu_button.h" | 30 #include "chrome/browser/ui/views/toolbar/app_menu_button.h" |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 if (uma_option_ && uma_option_->checked()) { | 459 if (uma_option_ && uma_option_->checked()) { |
| 456 InitiateMetricsReportingChange(true, OnMetricsReportingCallbackType()); | 460 InitiateMetricsReportingChange(true, OnMetricsReportingCallbackType()); |
| 457 RecordBubbleHistogramValue(SESSION_CRASHED_BUBBLE_UMA_OPTIN); | 461 RecordBubbleHistogramValue(SESSION_CRASHED_BUBBLE_UMA_OPTIN); |
| 458 } | 462 } |
| 459 CloseBubble(); | 463 CloseBubble(); |
| 460 } | 464 } |
| 461 | 465 |
| 462 void SessionCrashedBubbleView::CloseBubble() { | 466 void SessionCrashedBubbleView::CloseBubble() { |
| 463 GetWidget()->Close(); | 467 GetWidget()->Close(); |
| 464 } | 468 } |
| OLD | NEW |