Commit ac522c7e authored by evan@chromium.org's avatar evan@chromium.org

Reduce console spam.

This prints an error whenever you start up a new profile.
It also confused developers on one bug report because they couldn't
reproduce it on trunk because it was hidden in a GOOGLE_CHROME ifdef!

BUG=56925

Review URL: http://codereview.chromium.org/6400001

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72662 0039d316-1c4b-4281-b951-d872f2087c98
parent 975daed5
...@@ -84,13 +84,6 @@ PersistentPrefStore::PrefReadError JsonPrefStore::ReadPrefs() { ...@@ -84,13 +84,6 @@ PersistentPrefStore::PrefReadError JsonPrefStore::ReadPrefs() {
std::string error_msg; std::string error_msg;
scoped_ptr<Value> value(serializer.Deserialize(&error_code, &error_msg)); scoped_ptr<Value> value(serializer.Deserialize(&error_code, &error_msg));
if (!value.get()) { if (!value.get()) {
#if defined(GOOGLE_CHROME_BUILD)
// This log could be used for more detailed client-side error diagnosis,
// but since this triggers often with unit tests, we need to disable it
// in non-official builds.
PLOG(ERROR) << "Error reading Preferences: " << error_msg << " " <<
path_.value();
#endif
PrefReadError error; PrefReadError error;
switch (error_code) { switch (error_code) {
case JSONFileValueSerializer::JSON_ACCESS_DENIED: case JSONFileValueSerializer::JSON_ACCESS_DENIED:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment