Skip to content

Commit

Permalink
mac: use png otr icon asset instead of pdf
Browse files Browse the repository at this point in the history
BUG=111101

Review URL: https://codereview.chromium.org/10916283

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156727 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
thakis@chromium.org committed Sep 14, 2012
1 parent 21884f5 commit c1d4087
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion chrome/app/theme/theme_resources.grd
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@
<structure type="chrome_scaled_image" name="IDR_OOBE_PROGRESS_LINE_LEFT" file="oobe_progress_line_left.png" />
<structure type="chrome_scaled_image" name="IDR_OOBE_PROGRESS_LINE_RIGHT" file="oobe_progress_line_right.png" />
</if>
<if expr="not pp_ifdef('toolkit_views')">
<if expr="not pp_ifdef('toolkit_views') and not is_macosx">
<structure type="chrome_scaled_image" name="IDR_OTR_ICON" file="otr_icon.png" />
</if>
<if expr="pp_ifdef('toolkit_views')">
Expand All @@ -531,6 +531,9 @@
<structure type="chrome_scaled_image" name="IDR_OTR_ICON" file="cros/otr_icon.png" />
</if>
</if>
<if expr="is_macosx">
<structure type="chrome_scaled_image" name="IDR_OTR_ICON" file="mac/otr_icon.png" />
</if>
<if expr="context.startswith('default_')">
<structure type="chrome_scaled_image" name="IDR_OTR_ICON_FULLSCREEN" file="otr_icon.png" />
</if>
Expand Down
5 changes: 3 additions & 2 deletions chrome/browser/ui/cocoa/browser/avatar_button_controller.mm
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,9 @@ - (id)initWithBrowser:(Browser*)browser {
[self setView:button];

if (browser_->profile()->IsOffTheRecord()) {
[self setImage:[self compositeImageWithShadow:
gfx::GetCachedImageWithName(@"otr_icon.pdf")]];
ResourceBundle& bundle = ResourceBundle::GetSharedInstance();
NSImage* otrIcon = bundle.GetNativeImageNamed(IDR_OTR_ICON).ToNSImage();
[self setImage:[self compositeImageWithShadow:otrIcon]];
[self setButtonEnabled:NO];
} else {
[self setButtonEnabled:YES];
Expand Down
1 change: 0 additions & 1 deletion chrome/chrome_dll.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,6 @@
'app/theme/menu_hierarchy_arrow.pdf',
'app/theme/menu_overflow_down.pdf',
'app/theme/menu_overflow_up.pdf',
'app/theme/otr_icon.pdf',
'browser/mac/install.sh',
'<(SHARED_INTERMEDIATE_DIR)/repack/chrome.pak',
'<(SHARED_INTERMEDIATE_DIR)/repack/chrome_100_percent.pak',
Expand Down

0 comments on commit c1d4087

Please sign in to comment.