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

Side by Side Diff: trunk/src/content/browser/transition_request_manager.cc

Issue 474483002: Revert 289312 "Move StringToUpperASCII and LowerCaseEqualsASCII ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/transition_request_manager.h" 5 #include "content/browser/transition_request_manager.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/memory/singleton.h" 8 #include "base/memory/singleton.h"
9 #include "base/metrics/field_trial.h" 9 #include "base/metrics/field_trial.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 24 matching lines...) Expand all
35 break; 35 break;
36 } 36 }
37 37
38 if (attributes) 38 if (attributes)
39 attributes->clear(); 39 attributes->clear();
40 40
41 net::HttpUtil::NameValuePairsIterator param_iter( 41 net::HttpUtil::NameValuePairsIterator param_iter(
42 begin + url_end + 1, header_body.end(), ';'); 42 begin + url_end + 1, header_body.end(), ';');
43 43
44 while (param_iter.GetNext()) { 44 while (param_iter.GetNext()) {
45 if (base::LowerCaseEqualsASCII( 45 if (LowerCaseEqualsASCII(
46 param_iter.name_begin(), param_iter.name_end(), "rel")) { 46 param_iter.name_begin(), param_iter.name_end(), "rel")) {
47 if (base::LowerCaseEqualsASCII(param_iter.value_begin(), 47 if (LowerCaseEqualsASCII(param_iter.value_begin(),
48 param_iter.value_end(), 48 param_iter.value_end(),
49 rel.c_str())) { 49 rel.c_str())) {
50 if (url) { 50 if (url) {
51 url->assign(begin + url_start + 1, begin + url_end); 51 url->assign(begin + url_start + 1, begin + url_end);
52 } 52 }
53 rel_matched = true; 53 rel_matched = true;
54 } else { 54 } else {
55 break; 55 break;
56 } 56 }
57 } else if (attributes) { 57 } else if (attributes) {
58 std::string attribute_name(param_iter.name_begin(), 58 std::string attribute_name(param_iter.name_begin(),
59 param_iter.name_end()); 59 param_iter.name_end());
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 175
176 TransitionRequestManager::~TransitionRequestManager() { 176 TransitionRequestManager::~TransitionRequestManager() {
177 } 177 }
178 178
179 // static 179 // static
180 TransitionRequestManager* TransitionRequestManager::GetInstance() { 180 TransitionRequestManager* TransitionRequestManager::GetInstance() {
181 return Singleton<TransitionRequestManager>::get(); 181 return Singleton<TransitionRequestManager>::get();
182 } 182 }
183 183
184 } // namespace content 184 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698