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

Unified Diff: blimp/engine/app/blimp_engine_config.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_engine_config.h ('k') | blimp/engine/app/blimp_engine_config_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/engine/app/blimp_engine_config.cc
diff --git a/blimp/engine/app/blimp_engine_config.cc b/blimp/engine/app/blimp_engine_config.cc
deleted file mode 100644
index f1753fc4814064255991e5b3272da98246230df0..0000000000000000000000000000000000000000
--- a/blimp/engine/app/blimp_engine_config.cc
+++ /dev/null
@@ -1,72 +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_engine_config.h"
-
-#include <memory>
-#include <string>
-
-#include "base/base_switches.h"
-#include "base/command_line.h"
-#include "base/files/file_path.h"
-#include "base/files/file_util.h"
-#include "base/memory/ptr_util.h"
-#include "base/strings/string_util.h"
-#include "blimp/common/get_client_auth_token.h"
-#include "cc/base/switches.h"
-#include "content/public/common/content_switches.h"
-#include "ui/gl/gl_switches.h"
-#include "ui/native_theme/native_theme_switches.h"
-
-namespace blimp {
-namespace engine {
-
-void SetCommandLineDefaults(base::CommandLine* command_line) {
- command_line->AppendSwitch(::switches::kEnableOverlayScrollbar);
- command_line->AppendSwitch(::switches::kEnableViewport);
- command_line->AppendSwitch(cc::switches::kDisableCachedPictureRaster);
- command_line->AppendSwitch(::switches::kDisableGpu);
- command_line->AppendSwitch(
- "disable-remote-fonts"); // switches::kDisableRemoteFonts is not visible.
- command_line->AppendSwitch(::switches::kUseRemoteCompositing);
- command_line->AppendSwitchASCII(
- ::switches::kUseGL,
- "osmesa"); // Avoid invoking gpu::CollectDriverVersionNVidia.
-
- // Disable threaded animation since we don't support them right now.
- // (crbug/570376).
- command_line->AppendSwitch(cc::switches::kDisableThreadedAnimation);
-
- // Disable use-zoom-for-dsf since it ends up overriding the device scale
- // factor reported to the client. See crbug.com/654898.
- command_line->AppendSwitchASCII(::switches::kEnableUseZoomForDSF, "false");
-}
-
-BlimpEngineConfig::~BlimpEngineConfig() {}
-
-// static
-std::unique_ptr<BlimpEngineConfig> BlimpEngineConfig::Create(
- const base::CommandLine& cmd_line) {
- const std::string client_auth_token = GetClientAuthToken(cmd_line);
- if (!client_auth_token.empty()) {
- return base::WrapUnique(new BlimpEngineConfig(client_auth_token));
- }
- return nullptr;
-}
-
-// static
-std::unique_ptr<BlimpEngineConfig> BlimpEngineConfig::CreateForTest(
- const std::string& client_auth_token) {
- return base::WrapUnique(new BlimpEngineConfig(client_auth_token));
-}
-
-const std::string& BlimpEngineConfig::client_auth_token() const {
- return client_auth_token_;
-}
-
-BlimpEngineConfig::BlimpEngineConfig(const std::string& client_auth_token)
- : client_auth_token_(client_auth_token) {}
-
-} // namespace engine
-} // namespace blimp
« no previous file with comments | « blimp/engine/app/blimp_engine_config.h ('k') | blimp/engine/app/blimp_engine_config_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698