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

Unified Diff: components/captive_portal/captive_portal_testing_utils.cc

Issue 242483003: Move CaptivePortalDetector to src/components/captive_portal (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 8 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/captive_portal/captive_portal_testing_utils.cc
diff --git a/chrome/browser/captive_portal/testing_utils.cc b/components/captive_portal/captive_portal_testing_utils.cc
similarity index 89%
rename from chrome/browser/captive_portal/testing_utils.cc
rename to components/captive_portal/captive_portal_testing_utils.cc
index d55bd17ddabd0bd96102b0dbcfd9c455b41eb3b9..8061908e2c36c57527590bd9f82bdd8b29cc3a10 100644
--- a/chrome/browser/captive_portal/testing_utils.cc
+++ b/components/captive_portal/captive_portal_testing_utils.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/captive_portal/testing_utils.h"
+#include "components/captive_portal/captive_portal_testing_utils.h"
#include "base/logging.h"
#include "base/memory/ref_counted.h"
@@ -14,9 +14,8 @@ namespace {
scoped_refptr<net::HttpResponseHeaders> CreateResponseHeaders(
const std::string& response_headers) {
- std::string raw_headers =
- net::HttpUtil::AssembleRawHeaders(response_headers.c_str(),
- response_headers.length());
+ std::string raw_headers = net::HttpUtil::AssembleRawHeaders(
+ response_headers.c_str(), static_cast<int>(response_headers.length()));
return new net::HttpResponseHeaders(raw_headers);
}
« no previous file with comments | « components/captive_portal/captive_portal_testing_utils.h ('k') | components/captive_portal/captive_portal_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698