| 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> | 7 #include <stddef.h> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "chrome/browser/ui/views/toolbar/toolbar_view.h" | 30 #include "chrome/browser/ui/views/toolbar/toolbar_view.h" |
| 31 #include "chrome/common/chrome_switches.h" | 31 #include "chrome/common/chrome_switches.h" |
| 32 #include "chrome/common/pref_names.h" | 32 #include "chrome/common/pref_names.h" |
| 33 #include "chrome/common/url_constants.h" | 33 #include "chrome/common/url_constants.h" |
| 34 #include "chrome/grit/chromium_strings.h" | 34 #include "chrome/grit/chromium_strings.h" |
| 35 #include "chrome/grit/generated_resources.h" | 35 #include "chrome/grit/generated_resources.h" |
| 36 #include "chrome/installer/util/google_update_settings.h" | 36 #include "chrome/installer/util/google_update_settings.h" |
| 37 #include "components/metrics/metrics_pref_names.h" | 37 #include "components/metrics/metrics_pref_names.h" |
| 38 #include "components/prefs/pref_service.h" | 38 #include "components/prefs/pref_service.h" |
| 39 #include "components/strings/grit/components_chromium_strings.h" | 39 #include "components/strings/grit/components_chromium_strings.h" |
| 40 #include "components/strings/grit/components_google_chrome_strings.h" | |
| 41 #include "components/strings/grit/components_strings.h" | 40 #include "components/strings/grit/components_strings.h" |
| 42 #include "content/public/browser/browser_context.h" | 41 #include "content/public/browser/browser_context.h" |
| 43 #include "content/public/browser/browser_thread.h" | 42 #include "content/public/browser/browser_thread.h" |
| 44 #include "content/public/browser/notification_source.h" | 43 #include "content/public/browser/notification_source.h" |
| 45 #include "content/public/browser/web_contents.h" | 44 #include "content/public/browser/web_contents.h" |
| 46 #include "ui/base/l10n/l10n_util.h" | 45 #include "ui/base/l10n/l10n_util.h" |
| 47 #include "ui/views/bubble/bubble_frame_view.h" | 46 #include "ui/views/bubble/bubble_frame_view.h" |
| 48 #include "ui/views/controls/button/checkbox.h" | 47 #include "ui/views/controls/button/checkbox.h" |
| 49 #include "ui/views/controls/label.h" | 48 #include "ui/views/controls/label.h" |
| 50 #include "ui/views/controls/separator.h" | 49 #include "ui/views/controls/separator.h" |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 if (uma_option_ && uma_option_->checked()) { | 412 if (uma_option_ && uma_option_->checked()) { |
| 414 InitiateMetricsReportingChange(true, OnMetricsReportingCallbackType()); | 413 InitiateMetricsReportingChange(true, OnMetricsReportingCallbackType()); |
| 415 RecordBubbleHistogramValue(SESSION_CRASHED_BUBBLE_UMA_OPTIN); | 414 RecordBubbleHistogramValue(SESSION_CRASHED_BUBBLE_UMA_OPTIN); |
| 416 } | 415 } |
| 417 CloseBubble(); | 416 CloseBubble(); |
| 418 } | 417 } |
| 419 | 418 |
| 420 void SessionCrashedBubbleView::CloseBubble() { | 419 void SessionCrashedBubbleView::CloseBubble() { |
| 421 GetWidget()->Close(); | 420 GetWidget()->Close(); |
| 422 } | 421 } |
| OLD | NEW |