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

Side by Side Diff: chrome/browser/ui/global_error/global_error.cc

Issue 1846033002: Switch GlobalErrorBubbleView to a BubbleDialogDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix button action Created 4 years, 8 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/global_error/global_error.h" 5 #include "chrome/browser/ui/global_error/global_error.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "chrome/browser/ui/global_error/global_error_bubble_view_base.h" 9 #include "chrome/browser/ui/global_error/global_error_bubble_view_base.h"
10 #include "grit/theme_resources.h" 10 #include "grit/theme_resources.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 // If you change this make sure to also change the menu icon and the app menu 66 // If you change this make sure to also change the menu icon and the app menu
67 // icon color. 67 // icon color.
68 return ResourceBundle::GetSharedInstance().GetNativeImageNamed( 68 return ResourceBundle::GetSharedInstance().GetNativeImageNamed(
69 IDR_INPUT_ALERT); 69 IDR_INPUT_ALERT);
70 } 70 }
71 71
72 bool GlobalErrorWithStandardBubble::ShouldShowCloseButton() const { 72 bool GlobalErrorWithStandardBubble::ShouldShowCloseButton() const {
73 return false; 73 return false;
74 } 74 }
75 75
76 bool GlobalErrorWithStandardBubble::ShouldAddElevationIconToAcceptButton() {
77 return false;
78 }
79
80 void GlobalErrorWithStandardBubble::BubbleViewDidClose(Browser* browser) { 76 void GlobalErrorWithStandardBubble::BubbleViewDidClose(Browser* browser) {
81 DCHECK(browser); 77 DCHECK(browser);
82 bubble_view_ = NULL; 78 bubble_view_ = NULL;
83 OnBubbleViewDidClose(browser); 79 OnBubbleViewDidClose(browser);
84 } 80 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698