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

Unified Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 10538099: Revert 141573 - Update use of OTR avatars for touch. We now select (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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/views/frame/browser_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/browser_view.cc
===================================================================
--- chrome/browser/ui/views/frame/browser_view.cc (revision 141597)
+++ chrome/browser/ui/views/frame/browser_view.cc (working copy)
@@ -519,7 +519,7 @@
gfx::ImageSkia BrowserView::GetOTRAvatarIcon() const {
ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
const gfx::ImageSkia* otr_avatar =
- rb.GetNativeImageNamed(GetOTRIconResourceID()).ToImageSkia();
+ rb.GetNativeImageNamed(IDR_OTR_ICON).ToImageSkia();
return *otr_avatar;
}
@@ -1783,20 +1783,6 @@
browser::MaybeShowInvertBubbleView(browser_->profile(), contents_);
}
-int BrowserView::GetOTRIconResourceID() const {
- int otr_resource_id = IDR_OTR_ICON;
- if (ui::GetDisplayLayout() == ui::LAYOUT_TOUCH) {
- if (IsFullscreen())
- otr_resource_id = IDR_OTR_ICON_FULLSCREEN;
-#if defined(OS_WIN)
- if (base::win::GetMetroModule() != NULL)
- otr_resource_id = IDR_OTR_ICON_FULLSCREEN;
-#endif
- }
-
- return otr_resource_id;
-}
-
views::LayoutManager* BrowserView::CreateLayoutManager() const {
return new BrowserViewLayout;
}
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698