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

Unified Diff: components/security_state/security_state_model.cc

Issue 1539043002: Pull SecurityStateModel out into a component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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: components/security_state/security_state_model.cc
diff --git a/chrome/browser/ssl/security_state_model.cc b/components/security_state/security_state_model.cc
similarity index 97%
rename from chrome/browser/ssl/security_state_model.cc
rename to components/security_state/security_state_model.cc
index f0022d6e418fde809b8bb9da77167007bf3f0672..2efa11c02c8277b886a1294a80306688fc4bb599 100644
--- a/chrome/browser/ssl/security_state_model.cc
+++ b/components/security_state/security_state_model.cc
@@ -2,23 +2,23 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/ssl/security_state_model.h"
+#include "components/security_state/security_state_model.h"
#include <stdint.h>
#include "base/command_line.h"
#include "base/metrics/field_trial.h"
#include "base/metrics/histogram_macros.h"
-#include "chrome/browser/ssl/security_state_model_client.h"
-#include "chrome/common/chrome_switches.h"
+#include "components/security_state/security_state_model_client.h"
+#include "components/security_state/switches.h"
#include "net/ssl/ssl_cipher_suite_names.h"
#include "net/ssl/ssl_connection_status_flags.h"
+namespace security_state {
+
namespace {
SecurityStateModel::SecurityLevel GetSecurityLevelForNonSecureFieldTrial() {
- // TODO(estark): componentize switches::kMarkNonSecureAs.
- // https://crbug.com/515071
std::string choice =
base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
switches::kMarkNonSecureAs);
@@ -278,3 +278,5 @@ bool SecurityStateModel::VisibleSecurityState::operator==(
displayed_mixed_content == other.displayed_mixed_content &&
ran_mixed_content == other.ran_mixed_content);
}
+
+} // namespace security_state
« no previous file with comments | « components/security_state/security_state_model.h ('k') | components/security_state/security_state_model_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698