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

Side by Side Diff: chrome/browser/profiles/profile_io_data.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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/profiles/profile_io_data.h" 5 #include "chrome/browser/profiles/profile_io_data.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after
690 } 690 }
691 691
692 // static 692 // static
693 ProfileIOData* ProfileIOData::FromResourceContext( 693 ProfileIOData* ProfileIOData::FromResourceContext(
694 content::ResourceContext* rc) { 694 content::ResourceContext* rc) {
695 return (static_cast<ResourceContext*>(rc))->io_data_; 695 return (static_cast<ResourceContext*>(rc))->io_data_;
696 } 696 }
697 697
698 // static 698 // static
699 bool ProfileIOData::IsHandledProtocol(const std::string& scheme) { 699 bool ProfileIOData::IsHandledProtocol(const std::string& scheme) {
700 DCHECK_EQ(scheme, base::StringToLowerASCII(scheme)); 700 DCHECK_EQ(scheme, base::ToLowerASCII(scheme));
701 static const char* const kProtocolList[] = { 701 static const char* const kProtocolList[] = {
702 url::kFileScheme, 702 url::kFileScheme,
703 content::kChromeDevToolsScheme, 703 content::kChromeDevToolsScheme,
704 dom_distiller::kDomDistillerScheme, 704 dom_distiller::kDomDistillerScheme,
705 #if defined(ENABLE_EXTENSIONS) 705 #if defined(ENABLE_EXTENSIONS)
706 extensions::kExtensionScheme, 706 extensions::kExtensionScheme,
707 extensions::kExtensionResourceScheme, 707 extensions::kExtensionResourceScheme,
708 #endif 708 #endif
709 content::kChromeUIScheme, 709 content::kChromeUIScheme,
710 url::kDataScheme, 710 url::kDataScheme,
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
1329 new DevToolsNetworkTransactionFactory( 1329 new DevToolsNetworkTransactionFactory(
1330 network_controller_.get(), shared_session), 1330 network_controller_.get(), shared_session),
1331 shared_session->net_log(), backend)); 1331 shared_session->net_log(), backend));
1332 } 1332 }
1333 1333
1334 void ProfileIOData::SetCookieSettingsForTesting( 1334 void ProfileIOData::SetCookieSettingsForTesting(
1335 content_settings::CookieSettings* cookie_settings) { 1335 content_settings::CookieSettings* cookie_settings) {
1336 DCHECK(!cookie_settings_.get()); 1336 DCHECK(!cookie_settings_.get());
1337 cookie_settings_ = cookie_settings; 1337 cookie_settings_ = cookie_settings;
1338 } 1338 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698