| 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 | 149 |
| 150 #if defined(OS_LINUX) || defined(OS_OPENBSD) || defined(OS_ANDROID) | 150 #if defined(OS_LINUX) || defined(OS_OPENBSD) || defined(OS_ANDROID) |
| 151 #include "base/linux_util.h" | 151 #include "base/linux_util.h" |
| 152 #include "chrome/browser/crash_handler_host_linux.h" | 152 #include "chrome/browser/crash_handler_host_linux.h" |
| 153 #endif | 153 #endif |
| 154 | 154 |
| 155 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) | 155 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) |
| 156 #include "chrome/browser/captive_portal/captive_portal_tab_helper.h" | 156 #include "chrome/browser/captive_portal/captive_portal_tab_helper.h" |
| 157 #endif | 157 #endif |
| 158 | 158 |
| 159 #if defined(ENABLE_MESSAGE_CENTER) |
| 160 #include "ui/message_center/message_center_util.h" |
| 161 #endif |
| 162 |
| 159 #if defined(OS_ANDROID) | 163 #if defined(OS_ANDROID) |
| 160 #include "ui/base/ui_base_paths.h" | 164 #include "ui/base/ui_base_paths.h" |
| 161 #endif | 165 #endif |
| 162 | 166 |
| 163 #if defined(USE_NSS) | 167 #if defined(USE_NSS) |
| 164 #include "chrome/browser/ui/crypto_module_password_dialog.h" | 168 #include "chrome/browser/ui/crypto_module_password_dialog.h" |
| 165 #endif | 169 #endif |
| 166 | 170 |
| 167 using base::FileDescriptor; | 171 using base::FileDescriptor; |
| 168 using content::AccessTokenStore; | 172 using content::AccessTokenStore; |
| (...skipping 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1185 | 1189 |
| 1186 SigninManager* signin_manager = | 1190 SigninManager* signin_manager = |
| 1187 SigninManagerFactory::GetForProfile(profile); | 1191 SigninManagerFactory::GetForProfile(profile); |
| 1188 if (signin_manager && signin_manager->IsSigninProcess(process->GetID())) | 1192 if (signin_manager && signin_manager->IsSigninProcess(process->GetID())) |
| 1189 command_line->AppendSwitch(switches::kSigninProcess); | 1193 command_line->AppendSwitch(switches::kSigninProcess); |
| 1190 } | 1194 } |
| 1191 | 1195 |
| 1192 if (content::IsThreadedCompositingEnabled()) | 1196 if (content::IsThreadedCompositingEnabled()) |
| 1193 command_line->AppendSwitch(switches::kEnableThreadedCompositing); | 1197 command_line->AppendSwitch(switches::kEnableThreadedCompositing); |
| 1194 | 1198 |
| 1199 #if defined(ENABLE_MESSAGE_CENTER) |
| 1200 if (message_center::IsRichNotificationEnabled()) |
| 1201 command_line->AppendSwitch(switches::kDisableHTMLNotifications); |
| 1202 #endif |
| 1203 |
| 1195 // Please keep this in alphabetical order. | 1204 // Please keep this in alphabetical order. |
| 1196 static const char* const kSwitchNames[] = { | 1205 static const char* const kSwitchNames[] = { |
| 1197 switches::kAllowRequestOSFileHandleAPI, | 1206 switches::kAllowRequestOSFileHandleAPI, |
| 1198 switches::kAllowHTTPBackgroundPage, | 1207 switches::kAllowHTTPBackgroundPage, |
| 1199 switches::kAllowLegacyExtensionManifests, | 1208 switches::kAllowLegacyExtensionManifests, |
| 1200 switches::kAllowScriptingGallery, | 1209 switches::kAllowScriptingGallery, |
| 1201 switches::kAppsCheckoutURL, | 1210 switches::kAppsCheckoutURL, |
| 1202 switches::kAppsGalleryURL, | 1211 switches::kAppsGalleryURL, |
| 1203 switches::kCloudPrintServiceURL, | 1212 switches::kCloudPrintServiceURL, |
| 1204 switches::kDebugPrint, | 1213 switches::kDebugPrint, |
| (...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2191 #if defined(USE_NSS) | 2200 #if defined(USE_NSS) |
| 2192 crypto::CryptoModuleBlockingPasswordDelegate* | 2201 crypto::CryptoModuleBlockingPasswordDelegate* |
| 2193 ChromeContentBrowserClient::GetCryptoPasswordDelegate( | 2202 ChromeContentBrowserClient::GetCryptoPasswordDelegate( |
| 2194 const GURL& url) { | 2203 const GURL& url) { |
| 2195 return chrome::NewCryptoModuleBlockingDialogDelegate( | 2204 return chrome::NewCryptoModuleBlockingDialogDelegate( |
| 2196 chrome::kCryptoModulePasswordKeygen, url.host()); | 2205 chrome::kCryptoModulePasswordKeygen, url.host()); |
| 2197 } | 2206 } |
| 2198 #endif | 2207 #endif |
| 2199 | 2208 |
| 2200 } // namespace chrome | 2209 } // namespace chrome |
| OLD | NEW |