| 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 #include "net/ssl/ssl_cert_request_info.h" | 140 #include "net/ssl/ssl_cert_request_info.h" |
| 141 #include "ppapi/host/ppapi_host.h" | 141 #include "ppapi/host/ppapi_host.h" |
| 142 #include "ppapi/shared_impl/ppapi_switches.h" | 142 #include "ppapi/shared_impl/ppapi_switches.h" |
| 143 #include "ui/base/l10n/l10n_util.h" | 143 #include "ui/base/l10n/l10n_util.h" |
| 144 #include "ui/base/resource/resource_bundle.h" | 144 #include "ui/base/resource/resource_bundle.h" |
| 145 #include "ui/message_center/message_center_util.h" | 145 #include "ui/message_center/message_center_util.h" |
| 146 #include "webkit/browser/fileapi/external_mount_points.h" | 146 #include "webkit/browser/fileapi/external_mount_points.h" |
| 147 #include "webkit/common/webpreferences.h" | 147 #include "webkit/common/webpreferences.h" |
| 148 | 148 |
| 149 #if defined(OS_WIN) | 149 #if defined(OS_WIN) |
| 150 #include "base/win/windows_version.h" |
| 150 #include "chrome/browser/chrome_browser_main_win.h" | 151 #include "chrome/browser/chrome_browser_main_win.h" |
| 151 #include "sandbox/win/src/sandbox_policy.h" | 152 #include "sandbox/win/src/sandbox_policy.h" |
| 152 #elif defined(OS_MACOSX) | 153 #elif defined(OS_MACOSX) |
| 153 #include "chrome/browser/chrome_browser_main_mac.h" | 154 #include "chrome/browser/chrome_browser_main_mac.h" |
| 154 #include "chrome/browser/spellchecker/spellcheck_message_filter_mac.h" | 155 #include "chrome/browser/spellchecker/spellcheck_message_filter_mac.h" |
| 155 #include "components/breakpad/app/breakpad_mac.h" | 156 #include "components/breakpad/app/breakpad_mac.h" |
| 156 #elif defined(OS_CHROMEOS) | 157 #elif defined(OS_CHROMEOS) |
| 157 #include "chrome/browser/chromeos/chrome_browser_main_chromeos.h" | 158 #include "chrome/browser/chromeos/chrome_browser_main_chromeos.h" |
| 158 #include "chrome/browser/chromeos/drive/file_system_backend_delegate.h" | 159 #include "chrome/browser/chromeos/drive/file_system_backend_delegate.h" |
| 159 #include "chrome/browser/chromeos/fileapi/file_system_backend.h" | 160 #include "chrome/browser/chromeos/fileapi/file_system_backend.h" |
| (...skipping 1265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1425 if (process_type == switches::kRendererProcess) { | 1426 if (process_type == switches::kRendererProcess) { |
| 1426 #if defined(OS_CHROMEOS) | 1427 #if defined(OS_CHROMEOS) |
| 1427 const std::string& login_profile = | 1428 const std::string& login_profile = |
| 1428 browser_command_line.GetSwitchValueASCII( | 1429 browser_command_line.GetSwitchValueASCII( |
| 1429 chromeos::switches::kLoginProfile); | 1430 chromeos::switches::kLoginProfile); |
| 1430 if (!login_profile.empty()) | 1431 if (!login_profile.empty()) |
| 1431 command_line->AppendSwitchASCII( | 1432 command_line->AppendSwitchASCII( |
| 1432 chromeos::switches::kLoginProfile, login_profile); | 1433 chromeos::switches::kLoginProfile, login_profile); |
| 1433 #endif | 1434 #endif |
| 1434 | 1435 |
| 1436 #if defined(OS_WIN) |
| 1437 if (base::win::GetVersion() >= base::win::VERSION_WIN8) |
| 1438 command_line->AppendSwitch(switches::kEnablePinch); |
| 1439 #endif |
| 1440 |
| 1435 #if defined(ENABLE_WEBRTC) | 1441 #if defined(ENABLE_WEBRTC) |
| 1436 if (VersionInfo::GetChannel() <= VersionInfo::CHANNEL_DEV) { | 1442 if (VersionInfo::GetChannel() <= VersionInfo::CHANNEL_DEV) { |
| 1437 static const char* const kWebRtcDevSwitchNames[] = { | 1443 static const char* const kWebRtcDevSwitchNames[] = { |
| 1438 switches::kDisableWebRtcEncryption, | 1444 switches::kDisableWebRtcEncryption, |
| 1439 }; | 1445 }; |
| 1440 command_line->CopySwitchesFrom(browser_command_line, | 1446 command_line->CopySwitchesFrom(browser_command_line, |
| 1441 kWebRtcDevSwitchNames, | 1447 kWebRtcDevSwitchNames, |
| 1442 arraysize(kWebRtcDevSwitchNames)); | 1448 arraysize(kWebRtcDevSwitchNames)); |
| 1443 } | 1449 } |
| 1444 #endif | 1450 #endif |
| (...skipping 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2640 | 2646 |
| 2641 chrome::VersionInfo::Channel channel = chrome::VersionInfo::GetChannel(); | 2647 chrome::VersionInfo::Channel channel = chrome::VersionInfo::GetChannel(); |
| 2642 return channel <= chrome::VersionInfo::CHANNEL_DEV; | 2648 return channel <= chrome::VersionInfo::CHANNEL_DEV; |
| 2643 #else | 2649 #else |
| 2644 return false; | 2650 return false; |
| 2645 #endif | 2651 #endif |
| 2646 } | 2652 } |
| 2647 | 2653 |
| 2648 | 2654 |
| 2649 } // namespace chrome | 2655 } // namespace chrome |
| OLD | NEW |