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

Unified Diff: chrome/browser/chromeos/extensions/wallpaper_private_api.cc

Issue 11419315: cros: Fix a comparison of a bool with -1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/extensions/wallpaper_private_api.cc
diff --git a/chrome/browser/chromeos/extensions/wallpaper_private_api.cc b/chrome/browser/chromeos/extensions/wallpaper_private_api.cc
index 646f0ecd5592b9581499a214cc91eb1aed7e57eb..e08cb178ab5a5212d7076b909de59c17fdae4b88 100644
--- a/chrome/browser/chromeos/extensions/wallpaper_private_api.cc
+++ b/chrome/browser/chromeos/extensions/wallpaper_private_api.cc
@@ -90,7 +90,7 @@ bool GetData(int key, const std::string& file_name, std::string* data) {
FilePath file_path = data_dir.Append(file_name);
return !file_util::PathExists(file_path) ||
- (file_util::ReadFileToString(file_path, data) != -1);
+ !file_util::ReadFileToString(file_path, data);
}
class WindowStateManager;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698