| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |