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

Unified Diff: chrome/browser/chromeos/login/user_image_loader.cc

Issue 181413006: Replace misc. network stub flags with more flexible ones (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Elim. shill_stub_helper and move functions to clients. Created 6 years, 10 months 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/chromeos/login/user_image_loader.cc
diff --git a/chrome/browser/chromeos/login/user_image_loader.cc b/chrome/browser/chromeos/login/user_image_loader.cc
index bbb7c6b31bfacaf7a1909b2c5b2a285cc528eaf6..6ecb0ed6a90bea250f38ac03d91f2654ea8c632e 100644
--- a/chrome/browser/chromeos/login/user_image_loader.cc
+++ b/chrome/browser/chromeos/login/user_image_loader.cc
@@ -68,7 +68,7 @@ void UserImageLoader::ReadAndDecodeImage(const std::string& filepath,
scoped_ptr<std::string> data(new std::string);
const bool success =
base::ReadFileToString(base::FilePath(filepath), data.get());
- DCHECK(success);
+ if (!success) return;
pneubeck (no reviews) 2014/02/28 09:37:59 please don't include this unrelated(?) functional
stevenjb 2014/02/28 17:43:06 Accidental.
DecodeImage(data.Pass(), image_info);
}

Powered by Google App Engine
This is Rietveld 408576698