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

Side by Side Diff: chrome/browser/ui/views/profiles/profile_reset_bubble_view.cc

Issue 841163002: MacViews: Fix duplicate ShowSessionCrashBubble and ShowProfileResetBubble (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@keybinding
Patch Set: Created 5 years, 11 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/profiles/profile_reset_bubble_view.h" 5 #include "chrome/browser/ui/views/profiles/profile_reset_bubble_view.h"
6 6
7 #include "chrome/app/chrome_command_ids.h" 7 #include "chrome/app/chrome_command_ids.h"
8 #include "chrome/browser/profile_resetter/profile_reset_global_error.h" 8 #include "chrome/browser/profile_resetter/profile_reset_global_error.h"
9 #include "chrome/browser/profile_resetter/resettable_settings_snapshot.h" 9 #include "chrome/browser/profile_resetter/resettable_settings_snapshot.h"
10 #include "chrome/browser/ui/global_error/global_error_service.h" 10 #include "chrome/browser/ui/global_error/global_error_service.h"
11 #include "chrome/browser/ui/global_error/global_error_service_factory.h" 11 #include "chrome/browser/ui/global_error/global_error_service_factory.h"
12 #include "chrome/browser/ui/profile_reset_bubble.h"
13 #include "chrome/browser/ui/views/frame/browser_view.h" 12 #include "chrome/browser/ui/views/frame/browser_view.h"
14 #include "chrome/browser/ui/views/toolbar/toolbar_view.h" 13 #include "chrome/browser/ui/views/toolbar/toolbar_view.h"
15 #include "chrome/browser/ui/views/toolbar/wrench_toolbar_button.h" 14 #include "chrome/browser/ui/views/toolbar/wrench_toolbar_button.h"
16 #include "chrome/common/url_constants.h" 15 #include "chrome/common/url_constants.h"
17 #include "components/google/core/browser/google_util.h" 16 #include "components/google/core/browser/google_util.h"
18 #include "content/public/browser/page_navigator.h" 17 #include "content/public/browser/page_navigator.h"
19 #include "content/public/browser/user_metrics.h" 18 #include "content/public/browser/user_metrics.h"
20 #include "grit/chromium_strings.h" 19 #include "grit/chromium_strings.h"
21 #include "grit/components_strings.h" 20 #include "grit/components_strings.h"
22 #include "grit/generated_resources.h" 21 #include "grit/generated_resources.h"
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 428
430 void ProfileResetBubbleView::CloseBubbleView() { 429 void ProfileResetBubbleView::CloseBubbleView() {
431 resetting_ = false; 430 resetting_ = false;
432 GetWidget()->Close(); 431 GetWidget()->Close();
433 } 432 }
434 433
435 void ProfileResetBubbleView::UpdateFeedbackDetails() { 434 void ProfileResetBubbleView::UpdateFeedbackDetails() {
436 if (show_help_pane_) 435 if (show_help_pane_)
437 SetupLayoutManager(controls_.report_settings_checkbox->checked()); 436 SetupLayoutManager(controls_.report_settings_checkbox->checked());
438 } 437 }
439
440 bool IsProfileResetBubbleSupported() {
441 return true;
442 }
443
444 GlobalErrorBubbleViewBase* ShowProfileResetBubble(
445 const base::WeakPtr<ProfileResetGlobalError>& global_error,
446 Browser* browser) {
447 return ProfileResetBubbleView::ShowBubble(global_error, browser);
448 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | chrome/browser/ui/views/session_crashed_bubble_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698