| OLD | NEW |
| 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 <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "android_webview/browser/aw_browser_context.h" | 9 #include "android_webview/browser/aw_browser_context.h" |
| 10 #include "android_webview/browser/aw_browser_main_parts.h" | 10 #include "android_webview/browser/aw_browser_main_parts.h" |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 if (command_line->HasSwitch(switches::kSingleProcess)) { | 263 if (command_line->HasSwitch(switches::kSingleProcess)) { |
| 264 NOTREACHED() << "Android WebView does not support multi-process yet"; | 264 NOTREACHED() << "Android WebView does not support multi-process yet"; |
| 265 } else { | 265 } else { |
| 266 // The only kind of a child process WebView can have is renderer. | 266 // The only kind of a child process WebView can have is renderer. |
| 267 DCHECK_EQ(switches::kRendererProcess, | 267 DCHECK_EQ(switches::kRendererProcess, |
| 268 command_line->GetSwitchValueASCII(switches::kProcessType)); | 268 command_line->GetSwitchValueASCII(switches::kProcessType)); |
| 269 } | 269 } |
| 270 } | 270 } |
| 271 | 271 |
| 272 std::string AwContentBrowserClient::GetApplicationLocale() { | 272 std::string AwContentBrowserClient::GetApplicationLocale() { |
| 273 return base::android::GetDefaultLocale(); | 273 return base::android::GetDefaultLocaleString(); |
| 274 } | 274 } |
| 275 | 275 |
| 276 std::string AwContentBrowserClient::GetAcceptLangs( | 276 std::string AwContentBrowserClient::GetAcceptLangs( |
| 277 content::BrowserContext* context) { | 277 content::BrowserContext* context) { |
| 278 return GetAcceptLangsImpl(); | 278 return GetAcceptLangsImpl(); |
| 279 } | 279 } |
| 280 | 280 |
| 281 const gfx::ImageSkia* AwContentBrowserClient::GetDefaultFavicon() { | 281 const gfx::ImageSkia* AwContentBrowserClient::GetDefaultFavicon() { |
| 282 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); | 282 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); |
| 283 // TODO(boliu): Bundle our own default favicon? | 283 // TODO(boliu): Bundle our own default favicon? |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 } | 516 } |
| 517 return throttles; | 517 return throttles; |
| 518 } | 518 } |
| 519 | 519 |
| 520 content::DevToolsManagerDelegate* | 520 content::DevToolsManagerDelegate* |
| 521 AwContentBrowserClient::GetDevToolsManagerDelegate() { | 521 AwContentBrowserClient::GetDevToolsManagerDelegate() { |
| 522 return new AwDevToolsManagerDelegate(); | 522 return new AwDevToolsManagerDelegate(); |
| 523 } | 523 } |
| 524 | 524 |
| 525 } // namespace android_webview | 525 } // namespace android_webview |
| OLD | NEW |