From be3df2bcd2502eb0ff563a1fe7b760ed68182eae Mon Sep 17 00:00:00 2001 From: "thestig@chromium.org" Date: Fri, 25 Jun 2010 21:39:07 +0000 Subject: Add tests for chrome/browser/web_applications and mark some code as Win32 and/or Views only. (TTF) BUG=none TEST=included. Review URL: http://codereview.chromium.org/2826019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50897 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/web_applications/web_app.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'chrome/browser/web_applications/web_app.cc') diff --git a/chrome/browser/web_applications/web_app.cc b/chrome/browser/web_applications/web_app.cc index fce3da3..97a2329 100644 --- a/chrome/browser/web_applications/web_app.cc +++ b/chrome/browser/web_applications/web_app.cc @@ -5,7 +5,7 @@ #include "chrome/browser/web_applications/web_app.h" #if defined(OS_WIN) -#include +#include #endif // defined(OS_WIN) #include @@ -43,6 +43,7 @@ namespace { +#if defined(OS_WIN) const FilePath::CharType kIconChecksumFileExt[] = FILE_PATH_LITERAL(".ico.md5"); // Returns true if |ch| is in visible ASCII range and not one of @@ -81,12 +82,9 @@ FilePath GetSanitizedFileName(const string16& name) { file_name += c; } -#if defined(OS_WIN) return FilePath(file_name); -#elif defined(OS_POSIX) - return FilePath(UTF16ToUTF8(file_name)); -#endif } +#endif // defined(OS_WIN) // Returns relative directory of given web app url. FilePath GetWebAppDir(const GURL& url) { @@ -720,6 +718,7 @@ FilePath GetDataDir(const FilePath& profile_path) { return profile_path.Append(chrome::kWebAppDirname); } +#if defined(TOOLKIT_VIEWS) void GetIconsInfo(const webkit_glue::WebApplicationInfo& app_info, IconInfoList* icons) { DCHECK(icons); @@ -734,6 +733,7 @@ void GetIconsInfo(const webkit_glue::WebApplicationInfo& app_info, std::sort(icons->begin(), icons->end(), &IconPrecedes); } +#endif void GetShortcutInfoForTab(TabContents* tab_contents, ShellIntegration::ShortcutInfo* info) { -- cgit v1.1