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

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

Issue 448853002: Move StringToLowerASCII to base namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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
« 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 1569 matching lines...) Expand 10 before | Expand all | Expand 10 after
1580 1580
1581 bool has_no_store_header = false; 1581 bool has_no_store_header = false;
1582 std::string cache_control = 1582 std::string cache_control =
1583 response.httpHeaderField("cache-control").utf8(); 1583 response.httpHeaderField("cache-control").utf8();
1584 1584
1585 std::vector<std::string> values; 1585 std::vector<std::string> values;
1586 base::SplitString(cache_control, ',', &values); 1586 base::SplitString(cache_control, ',', &values);
1587 for (std::vector<std::string>::const_iterator it = values.begin(); 1587 for (std::vector<std::string>::const_iterator it = values.begin();
1588 it != values.end(); 1588 it != values.end();
1589 ++it) { 1589 ++it) {
1590 if (StringToLowerASCII(*it) == "no-store") 1590 if (base::StringToLowerASCII(*it) == "no-store")
1591 has_no_store_header = true; 1591 has_no_store_header = true;
1592 } 1592 }
1593 1593
1594 GetNexeFd(instance_, 1594 GetNexeFd(instance_,
1595 pexe_url_, 1595 pexe_url_,
1596 pexe_opt_level_, 1596 pexe_opt_level_,
1597 last_modified_time, 1597 last_modified_time,
1598 etag, 1598 etag,
1599 has_no_store_header, 1599 has_no_store_header,
1600 base::Bind(&PexeDownloader::didGetNexeFd, 1600 base::Bind(&PexeDownloader::didGetNexeFd,
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
1744 &StreamPexe 1744 &StreamPexe
1745 }; 1745 };
1746 1746
1747 } // namespace 1747 } // namespace
1748 1748
1749 const PPB_NaCl_Private* GetNaClPrivateInterface() { 1749 const PPB_NaCl_Private* GetNaClPrivateInterface() {
1750 return &nacl_interface; 1750 return &nacl_interface;
1751 } 1751 }
1752 1752
1753 } // namespace nacl 1753 } // 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