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

Side by Side Diff: components/nacl/renderer/ppb_nacl_private_impl.cc

Issue 1279123004: Replace ToLower calls to the new format (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « components/nacl/renderer/nexe_load_manager.cc ('k') | components/os_crypt/ie7_password_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "components/nacl/renderer/ppb_nacl_private_impl.h" 5 #include "components/nacl/renderer/ppb_nacl_private_impl.h"
6 6
7 #include <numeric> 7 #include <numeric>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 1541 matching lines...) Expand 10 before | Expand all | Expand 10 after
1552 response.httpHeaderField("last-modified").utf8(); 1552 response.httpHeaderField("last-modified").utf8();
1553 base::Time last_modified_time; 1553 base::Time last_modified_time;
1554 base::Time::FromString(last_modified.c_str(), &last_modified_time); 1554 base::Time::FromString(last_modified.c_str(), &last_modified_time);
1555 1555
1556 bool has_no_store_header = false; 1556 bool has_no_store_header = false;
1557 std::string cache_control = 1557 std::string cache_control =
1558 response.httpHeaderField("cache-control").utf8(); 1558 response.httpHeaderField("cache-control").utf8();
1559 1559
1560 for (const std::string& cur : base::SplitString( 1560 for (const std::string& cur : base::SplitString(
1561 cache_control, ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL)) { 1561 cache_control, ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL)) {
1562 if (base::StringToLowerASCII(cur) == "no-store") 1562 if (base::ToLowerASCII(cur) == "no-store")
1563 has_no_store_header = true; 1563 has_no_store_header = true;
1564 } 1564 }
1565 1565
1566 GetNexeFd( 1566 GetNexeFd(
1567 instance_, pexe_url_, pexe_opt_level_, last_modified_time, etag, 1567 instance_, pexe_url_, pexe_opt_level_, last_modified_time, etag,
1568 has_no_store_header, use_subzero_, 1568 has_no_store_header, use_subzero_,
1569 base::Bind(&PexeDownloader::didGetNexeFd, weak_factory_.GetWeakPtr())); 1569 base::Bind(&PexeDownloader::didGetNexeFd, weak_factory_.GetWeakPtr()));
1570 } 1570 }
1571 1571
1572 void didGetNexeFd(int32_t pp_error, 1572 void didGetNexeFd(int32_t pp_error,
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
1702 &StreamPexe 1702 &StreamPexe
1703 }; 1703 };
1704 1704
1705 } // namespace 1705 } // namespace
1706 1706
1707 const PPB_NaCl_Private* GetNaClPrivateInterface() { 1707 const PPB_NaCl_Private* GetNaClPrivateInterface() {
1708 return &nacl_interface; 1708 return &nacl_interface;
1709 } 1709 }
1710 1710
1711 } // namespace nacl 1711 } // namespace nacl
OLDNEW
« no previous file with comments | « components/nacl/renderer/nexe_load_manager.cc ('k') | components/os_crypt/ie7_password_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698