summaryrefslogtreecommitdiffstats
path: root/chrome/browser/web_applications
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-21 21:31:27 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-21 21:31:27 +0000
commit16f76563e2ad664612cb41c1c348f1a1afacd39b (patch)
treece3fc7d8ff1de19266ebdf802f22745568b44ef7 /chrome/browser/web_applications
parent2c839e74897807ed0727b7e038af6a37a6ac7ec0 (diff)
downloadchromium_src-16f76563e2ad664612cb41c1c348f1a1afacd39b.zip
chromium_src-16f76563e2ad664612cb41c1c348f1a1afacd39b.tar.gz
chromium_src-16f76563e2ad664612cb41c1c348f1a1afacd39b.tar.bz2
Fix a bunch of clang warnings/errors.
BUG=None TEST=None Review URL: http://codereview.chromium.org/3473006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60109 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/web_applications')
-rw-r--r--chrome/browser/web_applications/web_app.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/web_applications/web_app.cc b/chrome/browser/web_applications/web_app.cc
index ae4bc68..99e004b 100644
--- a/chrome/browser/web_applications/web_app.cc
+++ b/chrome/browser/web_applications/web_app.cc
@@ -111,13 +111,16 @@ FilePath GetWebAppDataDirectory(const FilePath& root_dir,
return root_dir.Append(GetWebAppDir(url));
}
+#if defined(TOOLKIT_VIEWS)
// Predicator for sorting images from largest to smallest.
bool IconPrecedes(
const webkit_glue::WebApplicationInfo::IconInfo& left,
const webkit_glue::WebApplicationInfo::IconInfo& right) {
return left.width < right.width;
}
+#endif
+#if defined(OS_WIN)
// Calculates image checksum using MD5.
void GetImageCheckSum(const SkBitmap& image, MD5Digest* digest) {
DCHECK(digest);
@@ -126,7 +129,6 @@ void GetImageCheckSum(const SkBitmap& image, MD5Digest* digest) {
MD5Sum(image.getPixels(), image.getSize(), digest);
}
-#if defined(OS_WIN)
// Saves |image| as an |icon_file| with the checksum.
bool SaveIconWithCheckSum(const FilePath& icon_file, const SkBitmap& image) {
if (!IconUtil::CreateIconFileFromSkBitmap(image, icon_file))