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

Unified Diff: components/offline_pages/core/request_header/offline_page_header.cc

Issue 2489443002: Move all components/offline_pages/ files into component/offline_pages/core (Closed)
Patch Set: rebase Created 4 years 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/offline_pages/core/request_header/offline_page_header.cc
diff --git a/components/offline_pages/request_header/offline_page_header.cc b/components/offline_pages/core/request_header/offline_page_header.cc
similarity index 96%
rename from components/offline_pages/request_header/offline_page_header.cc
rename to components/offline_pages/core/request_header/offline_page_header.cc
index db7b7c9e56de125b4301f5628cd9bc67423ef4a5..9c58e7d82ed114d7bb1bfebe2e273f64217b6345 100644
--- a/components/offline_pages/request_header/offline_page_header.cc
+++ b/components/offline_pages/core/request_header/offline_page_header.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 "components/offline_pages/request_header/offline_page_header.h"
+#include "components/offline_pages/core/request_header/offline_page_header.h"
#include "base/strings/string_tokenizer.h"
#include "base/strings/string_util.h"
@@ -82,8 +82,7 @@ std::string ReasonToString(OfflinePageHeader::Reason reason) {
OfflinePageHeader::OfflinePageHeader()
: did_fail_parsing_for_test(false),
need_to_persist(false),
- reason(Reason::NONE) {
-}
+ reason(Reason::NONE) {}
OfflinePageHeader::OfflinePageHeader(const std::string& header_value)
: did_fail_parsing_for_test(false),
@@ -108,13 +107,13 @@ std::string OfflinePageHeader::GetCompleteHeaderString() const {
value += "=";
value += need_to_persist ? "1" : "0";
- value += " " ;
+ value += " ";
value += kOfflinePageHeaderReasonKey;
value += "=";
value += ReasonToString(reason);
if (!id.empty()) {
- value += " " ;
+ value += " ";
value += kOfflinePageHeaderIDKey;
value += "=";
value += id;

Powered by Google App Engine
This is Rietveld 408576698