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

Unified Diff: chrome/browser/ui/cocoa/confirm_bubble_controller_unittest.mm

Issue 1242383005: Remove unused code in ConfirmBubbleModel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/cocoa/confirm_bubble_controller.mm ('k') | chrome/browser/ui/confirm_bubble_model.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/confirm_bubble_controller_unittest.mm
diff --git a/chrome/browser/ui/cocoa/confirm_bubble_controller_unittest.mm b/chrome/browser/ui/cocoa/confirm_bubble_controller_unittest.mm
index 891c951984b15f41dbd1d1b4b0228f5baf93f8cf..be249f7d2c52f16f9a766f7e53aa299ae954724c 100644
--- a/chrome/browser/ui/cocoa/confirm_bubble_controller_unittest.mm
+++ b/chrome/browser/ui/cocoa/confirm_bubble_controller_unittest.mm
@@ -9,9 +9,7 @@
#import "chrome/browser/ui/cocoa/confirm_bubble_cocoa.h"
#import "chrome/browser/ui/cocoa/confirm_bubble_controller.h"
#include "chrome/browser/ui/confirm_bubble_model.h"
-#include "grit/theme_resources.h"
#import "testing/gtest_mac.h"
-#include "ui/base/resource/resource_bundle.h"
#import "ui/gfx/geometry/point.h"
namespace {
@@ -28,7 +26,6 @@ class TestConfirmBubbleModel : public ConfirmBubbleModel {
~TestConfirmBubbleModel() override;
base::string16 GetTitle() const override;
base::string16 GetMessageText() const override;
- gfx::Image* GetIcon() const override;
int GetButtons() const override;
base::string16 GetButtonLabel(BubbleButton button) const override;
void Accept() override;
@@ -65,11 +62,6 @@ base::string16 TestConfirmBubbleModel::GetMessageText() const {
return base::ASCIIToUTF16("Test Message");
}
-gfx::Image* TestConfirmBubbleModel::GetIcon() const {
- return &ResourceBundle::GetSharedInstance().GetImageNamed(
- IDR_PRODUCT_LOGO_16);
-}
-
int TestConfirmBubbleModel::GetButtons() const {
return BUTTON_OK | BUTTON_CANCEL;
}
« no previous file with comments | « chrome/browser/ui/cocoa/confirm_bubble_controller.mm ('k') | chrome/browser/ui/confirm_bubble_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698