summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/tabs
diff options
context:
space:
mode:
authorfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-03 22:34:35 +0000
committerfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-03 22:34:35 +0000
commit06821f42d58c7b7f88303fd09de1ec86dace6f8e (patch)
tree80207da0fd90e4df8f87d9ba1dcf22f0c65d5e6f /chrome/browser/views/tabs
parentb53c5fca4e029639a07745750023096a6090aae3 (diff)
downloadchromium_src-06821f42d58c7b7f88303fd09de1ec86dace6f8e.zip
chromium_src-06821f42d58c7b7f88303fd09de1ec86dace6f8e.tar.gz
chromium_src-06821f42d58c7b7f88303fd09de1ec86dace6f8e.tar.bz2
Fix dragging icon in Extension App Windows (it was enlarged while dragging).
The tab contents changes are purely cosmetic (readability). BUG=43114 TEST=Drag a tab in an Extension App Window. It should have a regular sized icon. Review URL: http://codereview.chromium.org/1889001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46291 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/tabs')
-rw-r--r--chrome/browser/views/tabs/tab_renderer.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/chrome/browser/views/tabs/tab_renderer.cc b/chrome/browser/views/tabs/tab_renderer.cc
index 9220907..8b5a1d8 100644
--- a/chrome/browser/views/tabs/tab_renderer.cc
+++ b/chrome/browser/views/tabs/tab_renderer.cc
@@ -318,14 +318,13 @@ void TabRenderer::UpdateData(TabContents* contents,
data_.title = contents->GetTitle();
data_.off_the_record = contents->profile()->IsOffTheRecord();
data_.crashed = contents->is_crashed();
+ data_.app = contents->is_app();
SkBitmap* app_icon = contents->GetAppExtensionIcon();
- if (app_icon)
+ if (app_icon && data_.app)
data_.favicon = *app_icon;
else
data_.favicon = contents->GetFavIcon();
-
data_.phantom = phantom;
- data_.app = contents->is_app();
// Sets the accessible name for the tab.
SetAccessibleName(UTF16ToWide(data_.title));