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

Unified Diff: chrome/browser/sync_file_system/drive/api_util.cc

Issue 15657002: Mirror syncfs log to console and WebUI, with LogSeverity support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/sync_file_system/drive/api_util.cc
diff --git a/chrome/browser/sync_file_system/drive/api_util.cc b/chrome/browser/sync_file_system/drive/api_util.cc
index 14653a8eeb42bf3aa1a27f56093361dab246fc1d..196f9edbc2673a81046517de21810b9d8bec3764 100644
--- a/chrome/browser/sync_file_system/drive/api_util.cc
+++ b/chrome/browser/sync_file_system/drive/api_util.cc
@@ -17,6 +17,7 @@
#include "chrome/browser/google_apis/gdata_wapi_service.h"
#include "chrome/browser/google_apis/gdata_wapi_url_generator.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/sync_file_system/logger.h"
#include "chrome/common/extensions/extension.h"
#include "extensions/common/constants.h"
#include "net/base/escape.h"
@@ -307,8 +308,8 @@ void APIUtil::DidEnsureUniquenessForCreateDirectory(
if (!entry->is_folder()) {
// TODO(kinuko): Fix this. http://crbug.com/237090
- LOG(ERROR) << "A file is left for CreateDirectory due to "
- << "file-folder conflict!";
+ util::Log(logging::LOG_ERROR,
nhiroki 2013/05/22 05:42:40 nit: Can you align the arguments?
calvinlo 2013/05/22 08:42:56 Done.
+ "A file is left for CreateDirectory due to file-folder conflict!");
callback.Run(google_apis::HTTP_CONFLICT, std::string());
return;
}

Powered by Google App Engine
This is Rietveld 408576698