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

Unified Diff: chrome/browser/sync_file_system/sync_file_system_service.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: expect -> assert fix 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
« no previous file with comments | « chrome/browser/sync_file_system/logger_unittest.cc ('k') | chrome/chrome_tests_unit.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync_file_system/sync_file_system_service.cc
diff --git a/chrome/browser/sync_file_system/sync_file_system_service.cc b/chrome/browser/sync_file_system/sync_file_system_service.cc
index 1fbbcca12b16953b8b7e868c570bce71a664699d..c5fc0401c56ad193c987191c238a9337e1ac469f 100644
--- a/chrome/browser/sync_file_system/sync_file_system_service.cc
+++ b/chrome/browser/sync_file_system/sync_file_system_service.cc
@@ -16,6 +16,7 @@
#include "chrome/browser/sync/profile_sync_service_factory.h"
#include "chrome/browser/sync_file_system/drive_file_sync_service.h"
#include "chrome/browser/sync_file_system/local_file_sync_service.h"
+#include "chrome/browser/sync_file_system/logger.h"
#include "chrome/browser/sync_file_system/sync_event_observer.h"
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/extensions/extension.h"
@@ -67,12 +68,16 @@ void DidHandleOriginForExtensionUnloadedEvent(
code != SYNC_STATUS_UNKNOWN_ORIGIN) {
switch (reason) {
case extension_misc::UNLOAD_REASON_DISABLE:
- LOG(WARNING) << "Disabling origin for UNLOAD(DISABLE) failed: "
- << origin.spec();
+ util::Log(logging::LOG_WARNING,
+ FROM_HERE,
+ "Disabling origin for UNLOAD(DISABLE) failed: %s",
+ origin.spec().c_str());
break;
case extension_misc::UNLOAD_REASON_UNINSTALL:
- LOG(WARNING) << "Uninstall origin for UNLOAD(UNINSTALL) failed: "
- << origin.spec();
+ util::Log(logging::LOG_WARNING,
+ FROM_HERE,
+ "Uninstall origin for UNLOAD(UNINSTALL) failed: %s",
+ origin.spec().c_str());
break;
default:
break;
@@ -86,7 +91,10 @@ void DidHandleOriginForExtensionEnabledEvent(
SyncStatusCode code) {
DCHECK(chrome::NOTIFICATION_EXTENSION_ENABLED == type);
if (code != SYNC_STATUS_OK)
- LOG(WARNING) << "Enabling origin for ENABLED failed: " << origin.spec();
+ util::Log(logging::LOG_WARNING,
+ FROM_HERE,
+ "Enabling origin for ENABLED failed: %s",
+ origin.spec().c_str());
}
} // namespace
« no previous file with comments | « chrome/browser/sync_file_system/logger_unittest.cc ('k') | chrome/chrome_tests_unit.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698