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

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

Issue 2629743003: Remove all blimp engine code (Closed)
Patch Set: Use consistent comment style in //chrome Created 3 years, 11 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/engine/app/blimp_content_main_delegate.h ('k') | blimp/engine/app/blimp_engine_config.h » ('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
deleted file mode 100644
index 5cfa4c8b509ce5ccf3dc3bc527d886a8c8803874..0000000000000000000000000000000000000000
--- a/blimp/engine/app/blimp_content_main_delegate.cc
+++ /dev/null
@@ -1,96 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "blimp/engine/app/blimp_content_main_delegate.h"
-
-#include "base/base_switches.h"
-#include "base/command_line.h"
-#include "base/files/file.h"
-#include "base/files/file_path.h"
-#include "base/lazy_instance.h"
-#include "base/logging.h"
-#include "base/path_service.h"
-#include "blimp/engine/app/blimp_content_browser_client.h"
-#include "blimp/engine/app/blimp_engine_crash_reporter_client.h"
-#include "blimp/engine/renderer/blimp_content_renderer_client.h"
-// TODO(marcinjb): Reenable gncheck for breakpad_linux.h after
-// http://crbug.com/466890 is resolved.
-#include "components/crash/content/app/breakpad_linux.h" // nogncheck
-#include "components/crash/content/app/crash_reporter_client.h"
-#include "content/public/common/content_switches.h"
-#include "mojo/public/cpp/bindings/interface_request.h"
-#include "ui/base/resource/resource_bundle.h"
-
-namespace blimp {
-namespace engine {
-
-// Blimp engine crash client. This should be available globally and should be
-// long lived.
-base::LazyInstance<BlimpEngineCrashReporterClient>
- g_blimp_engine_crash_reporter_client = LAZY_INSTANCE_INITIALIZER;
-
-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;
-}
-
-void BlimpContentMainDelegate::PreSandboxStartup() {
- // Enable crash reporting for all processes, and initialize the crash
- // reporter client.
- crash_reporter::SetCrashReporterClient(
- g_blimp_engine_crash_reporter_client.Pointer());
- base::CommandLine* cmd = base::CommandLine::ForCurrentProcess();
- cmd->AppendSwitch(::switches::kEnableCrashReporter);
- breakpad::InitCrashReporter(
- cmd->GetSwitchValueASCII(::switches::kProcessType));
-
- InitializeResourceBundle();
-}
-
-void BlimpContentMainDelegate::InitializeResourceBundle() {
- base::FilePath pak_file;
- bool pak_file_valid = PathService::Get(base::DIR_MODULE, &pak_file);
- CHECK(pak_file_valid);
- pak_file = pak_file.Append(FILE_PATH_LITERAL("blimp_engine.pak"));
- ui::ResourceBundle::InitSharedInstanceWithPakPath(pak_file);
-}
-
-content::ContentBrowserClient*
-BlimpContentMainDelegate::CreateContentBrowserClient() {
- DCHECK(!browser_client_);
- browser_client_.reset(new BlimpContentBrowserClient);
- return browser_client_.get();
-}
-
-content::ContentRendererClient*
-BlimpContentMainDelegate::CreateContentRendererClient() {
- DCHECK(!renderer_client_);
- renderer_client_.reset(new BlimpContentRendererClient);
- return renderer_client_.get();
-}
-
-} // namespace engine
-} // namespace blimp
« no previous file with comments | « blimp/engine/app/blimp_content_main_delegate.h ('k') | blimp/engine/app/blimp_engine_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698