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

Unified Diff: blimp/engine/feature/engine_settings_feature.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
Index: blimp/engine/feature/engine_settings_feature.cc
diff --git a/blimp/engine/feature/engine_settings_feature.cc b/blimp/engine/feature/engine_settings_feature.cc
deleted file mode 100644
index 520d165580b654906e68a3ddfd421668883669d2..0000000000000000000000000000000000000000
--- a/blimp/engine/feature/engine_settings_feature.cc
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright 2016 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/feature/engine_settings_feature.h"
-
-#include "blimp/common/proto/blimp_message.pb.h"
-#include "blimp/common/proto/settings.pb.h"
-#include "blimp/engine/app/settings_manager.h"
-#include "blimp/engine/common/blimp_content_client.h"
-#include "content/public/browser/render_view_host.h"
-#include "content/public/common/web_preferences.h"
-#include "net/base/net_errors.h"
-
-namespace blimp {
-namespace engine {
-
-EngineSettingsFeature::EngineSettingsFeature(SettingsManager* settings_manager)
- : settings_manager_(settings_manager) {
- DCHECK(settings_manager_);
-}
-
-EngineSettingsFeature::~EngineSettingsFeature() {}
-
-void EngineSettingsFeature::ProcessMessage(
- std::unique_ptr<BlimpMessage> message,
- const net::CompletionCallback& callback) {
- DCHECK_EQ(BlimpMessage::kSettings, message->feature_case());
-
- const SettingsMessage& settings = message->settings();
- DCHECK(settings.has_engine_settings());
-
- const EngineSettingsMessage& engine_settings = settings.engine_settings();
- ProcessSettings(engine_settings);
-
- callback.Run(net::OK);
-}
-
-void EngineSettingsFeature::ProcessSettings(
- const EngineSettingsMessage& engine_settings) {
- if (engine_settings.has_record_whole_document()) {
- EngineSettings settings = settings_manager_->GetEngineSettings();
- settings.record_whole_document = engine_settings.record_whole_document();
- settings_manager_->UpdateEngineSettings(settings);
- }
-
- // Set the client OS information for building user agent.
- if (engine_settings.has_client_os_info()) {
- std::string client_os_info = engine_settings.client_os_info();
- SetClientOSInfo(client_os_info);
- }
-}
-
-} // namespace engine
-} // namespace blimp
« no previous file with comments | « blimp/engine/feature/engine_settings_feature.h ('k') | blimp/engine/feature/engine_settings_feature_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698