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 1271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1282 } | 1282 } |
1283 | 1283 |
1284 // Disable client-side phishing detection in the renderer if it is | 1284 // Disable client-side phishing detection in the renderer if it is |
1285 // disabled in the Profile preferences or the browser process. | 1285 // disabled in the Profile preferences or the browser process. |
1286 if (!prefs->GetBoolean(prefs::kSafeBrowsingEnabled) || | 1286 if (!prefs->GetBoolean(prefs::kSafeBrowsingEnabled) || |
1287 !g_browser_process->safe_browsing_detection_service()) { | 1287 !g_browser_process->safe_browsing_detection_service()) { |
1288 command_line->AppendSwitch( | 1288 command_line->AppendSwitch( |
1289 switches::kDisableClientSidePhishingDetection); | 1289 switches::kDisableClientSidePhishingDetection); |
1290 } | 1290 } |
1291 | 1291 |
1292 if (prefs->GetBoolean(prefs::kPrintPreviewDisabled)) | |
1293 command_line->AppendSwitch(switches::kDisablePrintPreview); | |
1294 | |
1295 InstantService* instant_service = | 1292 InstantService* instant_service = |
1296 InstantServiceFactory::GetForProfile(profile); | 1293 InstantServiceFactory::GetForProfile(profile); |
1297 if (instant_service && | 1294 if (instant_service && |
1298 instant_service->IsInstantProcess(process->GetID())) | 1295 instant_service->IsInstantProcess(process->GetID())) |
1299 command_line->AppendSwitch(switches::kInstantProcess); | 1296 command_line->AppendSwitch(switches::kInstantProcess); |
1300 | 1297 |
1301 #if !defined(OS_CHROMEOS) | 1298 #if !defined(OS_CHROMEOS) |
1302 SigninClient* signin_client = | 1299 SigninClient* signin_client = |
1303 ChromeSigninClientFactory::GetForProfile(profile); | 1300 ChromeSigninClientFactory::GetForProfile(profile); |
1304 if (signin_client && signin_client->IsSigninProcess(process->GetID())) | 1301 if (signin_client && signin_client->IsSigninProcess(process->GetID())) |
(...skipping 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2612 switches::kDisableWebRtcEncryption, | 2609 switches::kDisableWebRtcEncryption, |
2613 }; | 2610 }; |
2614 to_command_line->CopySwitchesFrom(from_command_line, | 2611 to_command_line->CopySwitchesFrom(from_command_line, |
2615 kWebRtcDevSwitchNames, | 2612 kWebRtcDevSwitchNames, |
2616 arraysize(kWebRtcDevSwitchNames)); | 2613 arraysize(kWebRtcDevSwitchNames)); |
2617 } | 2614 } |
2618 } | 2615 } |
2619 #endif // defined(ENABLE_WEBRTC) | 2616 #endif // defined(ENABLE_WEBRTC) |
2620 | 2617 |
2621 } // namespace chrome | 2618 } // namespace chrome |
OLD | NEW |