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

Unified Diff: chrome/browser/policy/policy_browsertest.cc

Issue 67923002: Fixes for -Wunused-function on Linux, Android and ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 1 month 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
Index: chrome/browser/policy/policy_browsertest.cc
diff --git a/chrome/browser/policy/policy_browsertest.cc b/chrome/browser/policy/policy_browsertest.cc
index 85d113b910daaf32b16b07c2c9136518c5c9b249..3fc4d9469b24d79fd532c4e1ff56784db97aa7f8 100644
--- a/chrome/browser/policy/policy_browsertest.cc
+++ b/chrome/browser/policy/policy_browsertest.cc
@@ -303,6 +303,7 @@ void CheckURLIsBlocked(Browser* browser, const char* spec) {
EXPECT_TRUE(result);
}
+#if !defined(OS_CHROMEOS)
// Downloads a file named |file| and expects it to be saved to |dir|, which
// must be empty.
void DownloadAndVerifyFile(
@@ -326,6 +327,7 @@ void DownloadAndVerifyFile(
EXPECT_EQ(file, enumerator.Next().BaseName());
EXPECT_EQ(base::FilePath(), enumerator.Next());
}
+#endif
#if defined(OS_CHROMEOS)
Nico 2013/11/10 05:07:09 Maybe make the previous 3 lines an #else?
hans 2013/11/11 19:29:51 Done.
int CountScreenshots() {
@@ -342,6 +344,7 @@ int CountScreenshots() {
#endif
// Checks if WebGL is enabled in the given WebContents.
+#if defined(OS_MACOSX)
bool IsWebGLEnabled(content::WebContents* contents) {
bool result = false;
EXPECT_TRUE(content::ExecuteScriptAndExtractBool(
@@ -352,6 +355,7 @@ bool IsWebGLEnabled(content::WebContents* contents) {
&result));
return result;
}
+#endif // defined(OS_MACOSX)
bool IsJavascriptEnabled(content::WebContents* contents) {
scoped_ptr<base::Value> value = content::ExecuteScriptAndGetValue(

Powered by Google App Engine
This is Rietveld 408576698