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

Unified Diff: blimp/engine/app/blimp_content_main_delegate.cc

Issue 1551583003: Implementation and fixes for Blimp client/engine E2E communication. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dtrainor-linux-cl1528243002
Patch Set: Fixed misplaced EXPORT directive Created 4 years, 12 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 | « blimp/client/session/blimp_client_session.cc ('k') | blimp/engine/app/blimp_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/engine/app/blimp_content_main_delegate.cc
diff --git a/blimp/engine/app/blimp_content_main_delegate.cc b/blimp/engine/app/blimp_content_main_delegate.cc
index a3efeffe80e561ce071b03869270a3072344577a..44be171b1471cfdf199f7c7a21dc0fed603c9a87 100644
--- a/blimp/engine/app/blimp_content_main_delegate.cc
+++ b/blimp/engine/app/blimp_content_main_delegate.cc
@@ -6,6 +6,7 @@
#include "base/files/file.h"
#include "base/files/file_path.h"
+#include "base/logging.h"
#include "base/path_service.h"
#include "blimp/engine/browser/blimp_content_browser_client.h"
#include "blimp/engine/renderer/blimp_content_renderer_client.h"
@@ -13,12 +14,29 @@
namespace blimp {
namespace engine {
+namespace {
+void InitLogging() {
+ logging::LoggingSettings settings;
+ base::FilePath log_filename;
+ PathService::Get(base::DIR_EXE, &log_filename);
+ log_filename = log_filename.AppendASCII("blimp_engine.log");
+ settings.logging_dest = logging::LOG_TO_ALL;
+ settings.log_file = log_filename.value().c_str();
+ settings.delete_old = logging::DELETE_OLD_LOG_FILE;
+ logging::InitLogging(settings);
+ logging::SetLogItems(true, // Process ID
+ true, // Thread ID
+ true, // Timestamp
+ false); // Tick count
+}
+} // namespace
BlimpContentMainDelegate::BlimpContentMainDelegate() {}
BlimpContentMainDelegate::~BlimpContentMainDelegate() {}
bool BlimpContentMainDelegate::BasicStartupComplete(int* exit_code) {
+ InitLogging();
content::SetContentClient(&content_client_);
return false;
}
« no previous file with comments | « blimp/client/session/blimp_client_session.cc ('k') | blimp/engine/app/blimp_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698