| 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 "chrome/browser/chrome_content_browser_client.h" | 5 #include "chrome/browser/chrome_content_browser_client.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1156 switches::kPlaybackMode, | 1156 switches::kPlaybackMode, |
| 1157 switches::kPpapiFlashArgs, | 1157 switches::kPpapiFlashArgs, |
| 1158 switches::kPpapiFlashInProcess, | 1158 switches::kPpapiFlashInProcess, |
| 1159 switches::kPpapiFlashPath, | 1159 switches::kPpapiFlashPath, |
| 1160 switches::kPpapiFlashVersion, | 1160 switches::kPpapiFlashVersion, |
| 1161 switches::kProfilingAtStart, | 1161 switches::kProfilingAtStart, |
| 1162 switches::kProfilingFile, | 1162 switches::kProfilingFile, |
| 1163 switches::kProfilingFlush, | 1163 switches::kProfilingFlush, |
| 1164 switches::kRecordMode, | 1164 switches::kRecordMode, |
| 1165 switches::kSilentDumpOnDCHECK, | 1165 switches::kSilentDumpOnDCHECK, |
| 1166 switches::kSpdyProxyOrigin, | 1166 switches::kSpdyProxyAuthOrigin, |
| 1167 switches::kWhitelistedExtensionID, | 1167 switches::kWhitelistedExtensionID, |
| 1168 }; | 1168 }; |
| 1169 | 1169 |
| 1170 command_line->CopySwitchesFrom(browser_command_line, kSwitchNames, | 1170 command_line->CopySwitchesFrom(browser_command_line, kSwitchNames, |
| 1171 arraysize(kSwitchNames)); | 1171 arraysize(kSwitchNames)); |
| 1172 } else if (process_type == switches::kUtilityProcess) { | 1172 } else if (process_type == switches::kUtilityProcess) { |
| 1173 static const char* const kSwitchNames[] = { | 1173 static const char* const kSwitchNames[] = { |
| 1174 switches::kAllowHTTPBackgroundPage, | 1174 switches::kAllowHTTPBackgroundPage, |
| 1175 switches::kEnableExperimentalExtensionApis, | 1175 switches::kEnableExperimentalExtensionApis, |
| 1176 switches::kWhitelistedExtensionID, | 1176 switches::kWhitelistedExtensionID, |
| (...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2089 io_thread_application_locale_ = locale; | 2089 io_thread_application_locale_ = locale; |
| 2090 } | 2090 } |
| 2091 | 2091 |
| 2092 void ChromeContentBrowserClient::SetApplicationLocaleOnIOThread( | 2092 void ChromeContentBrowserClient::SetApplicationLocaleOnIOThread( |
| 2093 const std::string& locale) { | 2093 const std::string& locale) { |
| 2094 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 2094 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
| 2095 io_thread_application_locale_ = locale; | 2095 io_thread_application_locale_ = locale; |
| 2096 } | 2096 } |
| 2097 | 2097 |
| 2098 } // namespace chrome | 2098 } // namespace chrome |
| OLD | NEW |