Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(731)

Side by Side Diff: chrome/browser/ui/views/session_crashed_bubble_view.cc

Issue 1708593002: Componentize IDS_SESSION_CRASHED_* to allow sharing with iOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move branded strings to components_$(branding).grd Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 18 matching lines...) Expand all
29 #include "chrome/browser/ui/views/toolbar/app_menu_button.h" 29 #include "chrome/browser/ui/views/toolbar/app_menu_button.h"
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"
40 #include "components/strings/grit/components_google_chrome_strings.h"
41 #include "components/strings/grit/components_strings.h"
39 #include "content/public/browser/browser_context.h" 42 #include "content/public/browser/browser_context.h"
40 #include "content/public/browser/browser_thread.h" 43 #include "content/public/browser/browser_thread.h"
41 #include "content/public/browser/notification_source.h" 44 #include "content/public/browser/notification_source.h"
42 #include "content/public/browser/web_contents.h" 45 #include "content/public/browser/web_contents.h"
43 #include "ui/base/l10n/l10n_util.h" 46 #include "ui/base/l10n/l10n_util.h"
44 #include "ui/views/bubble/bubble_frame_view.h" 47 #include "ui/views/bubble/bubble_frame_view.h"
45 #include "ui/views/controls/button/checkbox.h" 48 #include "ui/views/controls/button/checkbox.h"
46 #include "ui/views/controls/button/label_button.h" 49 #include "ui/views/controls/button/label_button.h"
47 #include "ui/views/controls/label.h" 50 #include "ui/views/controls/label.h"
48 #include "ui/views/controls/separator.h" 51 #include "ui/views/controls/separator.h"
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 if (uma_option_ && uma_option_->checked()) { 428 if (uma_option_ && uma_option_->checked()) {
426 InitiateMetricsReportingChange(true, OnMetricsReportingCallbackType()); 429 InitiateMetricsReportingChange(true, OnMetricsReportingCallbackType());
427 RecordBubbleHistogramValue(SESSION_CRASHED_BUBBLE_UMA_OPTIN); 430 RecordBubbleHistogramValue(SESSION_CRASHED_BUBBLE_UMA_OPTIN);
428 } 431 }
429 CloseBubble(); 432 CloseBubble();
430 } 433 }
431 434
432 void SessionCrashedBubbleView::CloseBubble() { 435 void SessionCrashedBubbleView::CloseBubble() {
433 GetWidget()->Close(); 436 GetWidget()->Close();
434 } 437 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/startup/session_crashed_infobar_delegate.cc ('k') | components/components_chromium_strings.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698