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

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: 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/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..da49b39db2d3db62963cf1788313d6f4afdb0316 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,14 @@ 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,
+ std::string("Disabling origin for UNLOAD(DISABLE) failed: ")
+ .append(origin.spec()));
break;
case extension_misc::UNLOAD_REASON_UNINSTALL:
- LOG(WARNING) << "Uninstall origin for UNLOAD(UNINSTALL) failed: "
- << origin.spec();
+ util::Log(logging::LOG_WARNING,
+ std::string("Uninstall origin for UNLOAD(UNINSTALL) failed: ")
+ .append(origin.spec()));
break;
default:
break;
@@ -86,7 +89,9 @@ 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,
+ std::string("Enabling origin for ENABLED failed: ")
+ .append(origin.spec()));
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698