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

Side by Side Diff: android_webview/browser/aw_content_browser_client.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 | « no previous file | ash/system/chromeos/network/network_connect.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 (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 "android_webview/browser/aw_content_browser_client.h" 5 #include "android_webview/browser/aw_content_browser_client.h"
6 6
7 #include "android_webview/browser/aw_browser_context.h" 7 #include "android_webview/browser/aw_browser_context.h"
8 #include "android_webview/browser/aw_browser_main_parts.h" 8 #include "android_webview/browser/aw_browser_main_parts.h"
9 #include "android_webview/browser/aw_browser_permission_request_delegate.h" 9 #include "android_webview/browser/aw_browser_permission_request_delegate.h"
10 #include "android_webview/browser/aw_contents_client_bridge_base.h" 10 #include "android_webview/browser/aw_contents_client_bridge_base.h"
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 } 161 }
162 162
163 } // namespace 163 } // namespace
164 164
165 std::string AwContentBrowserClient::GetAcceptLangsImpl() { 165 std::string AwContentBrowserClient::GetAcceptLangsImpl() {
166 // Start with the currnet locale. 166 // Start with the currnet locale.
167 std::string langs = l10n_util::GetDefaultLocale(); 167 std::string langs = l10n_util::GetDefaultLocale();
168 168
169 // If we're not en-US, add in en-US which will be 169 // If we're not en-US, add in en-US which will be
170 // used with a lower q-value. 170 // used with a lower q-value.
171 if (StringToLowerASCII(langs) != "en-us") { 171 if (base::StringToLowerASCII(langs) != "en-us") {
172 langs += ",en-US"; 172 langs += ",en-US";
173 } 173 }
174 return langs; 174 return langs;
175 } 175 }
176 176
177 AwBrowserContext* AwContentBrowserClient::GetAwBrowserContext() { 177 AwBrowserContext* AwContentBrowserClient::GetAwBrowserContext() {
178 return AwBrowserContext::GetDefault(); 178 return AwBrowserContext::GetDefault();
179 } 179 }
180 180
181 AwContentBrowserClient::AwContentBrowserClient( 181 AwContentBrowserClient::AwContentBrowserClient(
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 588
589 #if defined(VIDEO_HOLE) 589 #if defined(VIDEO_HOLE)
590 content::ExternalVideoSurfaceContainer* 590 content::ExternalVideoSurfaceContainer*
591 AwContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( 591 AwContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer(
592 content::WebContents* web_contents) { 592 content::WebContents* web_contents) {
593 return native_factory_->CreateExternalVideoSurfaceContainer(web_contents); 593 return native_factory_->CreateExternalVideoSurfaceContainer(web_contents);
594 } 594 }
595 #endif 595 #endif
596 596
597 } // namespace android_webview 597 } // namespace android_webview
OLDNEW
« no previous file with comments | « no previous file | ash/system/chromeos/network/network_connect.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698