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 <map> | 7 #include <map> |
8 #include <set> | 8 #include <set> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 #include "chrome/browser/download/download_prefs.h" | 44 #include "chrome/browser/download/download_prefs.h" |
45 #include "chrome/browser/engagement/site_engagement_eviction_policy.h" | 45 #include "chrome/browser/engagement/site_engagement_eviction_policy.h" |
46 #include "chrome/browser/font_family_cache.h" | 46 #include "chrome/browser/font_family_cache.h" |
47 #include "chrome/browser/geolocation/chrome_access_token_store.h" | 47 #include "chrome/browser/geolocation/chrome_access_token_store.h" |
48 #include "chrome/browser/media/media_capture_devices_dispatcher.h" | 48 #include "chrome/browser/media/media_capture_devices_dispatcher.h" |
49 #include "chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h" | 49 #include "chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h" |
50 #include "chrome/browser/nacl_host/nacl_browser_delegate_impl.h" | 50 #include "chrome/browser/nacl_host/nacl_browser_delegate_impl.h" |
51 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h" | 51 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h" |
52 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_fact
ory.h" | 52 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_fact
ory.h" |
53 #include "chrome/browser/notifications/platform_notification_service_impl.h" | 53 #include "chrome/browser/notifications/platform_notification_service_impl.h" |
| 54 #include "chrome/browser/origin_trials/origin_trial_controller.h" |
54 #include "chrome/browser/platform_util.h" | 55 #include "chrome/browser/platform_util.h" |
55 #include "chrome/browser/prerender/prerender_final_status.h" | 56 #include "chrome/browser/prerender/prerender_final_status.h" |
56 #include "chrome/browser/prerender/prerender_manager.h" | 57 #include "chrome/browser/prerender/prerender_manager.h" |
57 #include "chrome/browser/prerender/prerender_manager_factory.h" | 58 #include "chrome/browser/prerender/prerender_manager_factory.h" |
58 #include "chrome/browser/prerender/prerender_message_filter.h" | 59 #include "chrome/browser/prerender/prerender_message_filter.h" |
59 #include "chrome/browser/printing/printing_message_filter.h" | 60 #include "chrome/browser/printing/printing_message_filter.h" |
60 #include "chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.h" | 61 #include "chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.h" |
61 #include "chrome/browser/profiles/profile.h" | 62 #include "chrome/browser/profiles/profile.h" |
62 #include "chrome/browser/profiles/profile_io_data.h" | 63 #include "chrome/browser/profiles/profile_io_data.h" |
63 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" | 64 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" |
(...skipping 1516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1580 command_line->AppendSwitchASCII( | 1581 command_line->AppendSwitchASCII( |
1581 error_page::switches::kShowSavedCopy, | 1582 error_page::switches::kShowSavedCopy, |
1582 error_page::switches::kEnableShowSavedCopySecondary); | 1583 error_page::switches::kEnableShowSavedCopySecondary); |
1583 } | 1584 } |
1584 } | 1585 } |
1585 } | 1586 } |
1586 | 1587 |
1587 MaybeAppendBlinkSettingsSwitchForFieldTrial( | 1588 MaybeAppendBlinkSettingsSwitchForFieldTrial( |
1588 browser_command_line, command_line); | 1589 browser_command_line, command_line); |
1589 | 1590 |
| 1591 OriginTrialController::UpdateCommandLineFromFieldTrials(command_line); |
| 1592 |
1590 // Please keep this in alphabetical order. | 1593 // Please keep this in alphabetical order. |
1591 static const char* const kSwitchNames[] = { | 1594 static const char* const kSwitchNames[] = { |
1592 #if defined(OS_ANDROID) | 1595 #if defined(OS_ANDROID) |
1593 autofill::switches::kDisableAccessorySuggestionView, | 1596 autofill::switches::kDisableAccessorySuggestionView, |
1594 autofill::switches::kEnableAccessorySuggestionView, | 1597 autofill::switches::kEnableAccessorySuggestionView, |
1595 #endif | 1598 #endif |
1596 autofill::switches::kDisableFillOnAccountSelect, | 1599 autofill::switches::kDisableFillOnAccountSelect, |
1597 autofill::switches::kDisablePasswordGeneration, | 1600 autofill::switches::kDisablePasswordGeneration, |
1598 autofill::switches::kEnableFillOnAccountSelect, | 1601 autofill::switches::kEnableFillOnAccountSelect, |
1599 autofill::switches::kEnableFillOnAccountSelectNoHighlighting, | 1602 autofill::switches::kEnableFillOnAccountSelectNoHighlighting, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1632 switches::kEnableNetBenchmarking, | 1635 switches::kEnableNetBenchmarking, |
1633 switches::kEnableNewBookmarkApps, | 1636 switches::kEnableNewBookmarkApps, |
1634 #if defined(OS_ANDROID) | 1637 #if defined(OS_ANDROID) |
1635 switches::kEnableOfflinePagesAsBookmarks, | 1638 switches::kEnableOfflinePagesAsBookmarks, |
1636 #endif | 1639 #endif |
1637 #if !defined(DISABLE_NACL) | 1640 #if !defined(DISABLE_NACL) |
1638 switches::kForcePNaClSubzero, | 1641 switches::kForcePNaClSubzero, |
1639 #endif | 1642 #endif |
1640 switches::kJavaScriptHarmony, | 1643 switches::kJavaScriptHarmony, |
1641 switches::kMessageLoopHistogrammer, | 1644 switches::kMessageLoopHistogrammer, |
| 1645 switches::kOriginTrialPublicKey, |
1642 switches::kPpapiFlashArgs, | 1646 switches::kPpapiFlashArgs, |
1643 switches::kPpapiFlashPath, | 1647 switches::kPpapiFlashPath, |
1644 switches::kPpapiFlashVersion, | 1648 switches::kPpapiFlashVersion, |
1645 switches::kProfilingAtStart, | 1649 switches::kProfilingAtStart, |
1646 switches::kProfilingFile, | 1650 switches::kProfilingFile, |
1647 switches::kProfilingFlush, | 1651 switches::kProfilingFlush, |
1648 switches::kReaderModeHeuristics, | 1652 switches::kReaderModeHeuristics, |
1649 switches::kUnsafelyTreatInsecureOriginAsSecure, | 1653 switches::kUnsafelyTreatInsecureOriginAsSecure, |
1650 translate::switches::kTranslateSecurityOrigin, | 1654 translate::switches::kTranslateSecurityOrigin, |
1651 }; | 1655 }; |
(...skipping 1272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2924 if (channel <= kMaxDisableEncryptionChannel) { | 2928 if (channel <= kMaxDisableEncryptionChannel) { |
2925 static const char* const kWebRtcDevSwitchNames[] = { | 2929 static const char* const kWebRtcDevSwitchNames[] = { |
2926 switches::kDisableWebRtcEncryption, | 2930 switches::kDisableWebRtcEncryption, |
2927 }; | 2931 }; |
2928 to_command_line->CopySwitchesFrom(from_command_line, | 2932 to_command_line->CopySwitchesFrom(from_command_line, |
2929 kWebRtcDevSwitchNames, | 2933 kWebRtcDevSwitchNames, |
2930 arraysize(kWebRtcDevSwitchNames)); | 2934 arraysize(kWebRtcDevSwitchNames)); |
2931 } | 2935 } |
2932 } | 2936 } |
2933 #endif // defined(ENABLE_WEBRTC) | 2937 #endif // defined(ENABLE_WEBRTC) |
OLD | NEW |