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 1519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1583 command_line->AppendSwitchASCII( | 1584 command_line->AppendSwitchASCII( |
1584 error_page::switches::kShowSavedCopy, | 1585 error_page::switches::kShowSavedCopy, |
1585 error_page::switches::kEnableShowSavedCopySecondary); | 1586 error_page::switches::kEnableShowSavedCopySecondary); |
1586 } | 1587 } |
1587 } | 1588 } |
1588 } | 1589 } |
1589 | 1590 |
1590 MaybeAppendBlinkSettingsSwitchForFieldTrial( | 1591 MaybeAppendBlinkSettingsSwitchForFieldTrial( |
1591 browser_command_line, command_line); | 1592 browser_command_line, command_line); |
1592 | 1593 |
| 1594 OriginTrialController::UpdateCommandLineFromFieldTrials(command_line); |
| 1595 |
1593 // Please keep this in alphabetical order. | 1596 // Please keep this in alphabetical order. |
1594 static const char* const kSwitchNames[] = { | 1597 static const char* const kSwitchNames[] = { |
1595 #if defined(OS_ANDROID) | 1598 #if defined(OS_ANDROID) |
1596 autofill::switches::kDisableAccessorySuggestionView, | 1599 autofill::switches::kDisableAccessorySuggestionView, |
1597 autofill::switches::kEnableAccessorySuggestionView, | 1600 autofill::switches::kEnableAccessorySuggestionView, |
1598 #endif | 1601 #endif |
1599 autofill::switches::kDisableFillOnAccountSelect, | 1602 autofill::switches::kDisableFillOnAccountSelect, |
1600 autofill::switches::kDisablePasswordGeneration, | 1603 autofill::switches::kDisablePasswordGeneration, |
1601 autofill::switches::kEnableFillOnAccountSelect, | 1604 autofill::switches::kEnableFillOnAccountSelect, |
1602 autofill::switches::kEnableFillOnAccountSelectNoHighlighting, | 1605 autofill::switches::kEnableFillOnAccountSelectNoHighlighting, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1635 switches::kEnableNetBenchmarking, | 1638 switches::kEnableNetBenchmarking, |
1636 switches::kEnableNewBookmarkApps, | 1639 switches::kEnableNewBookmarkApps, |
1637 #if defined(OS_ANDROID) | 1640 #if defined(OS_ANDROID) |
1638 switches::kEnableOfflinePagesAsBookmarks, | 1641 switches::kEnableOfflinePagesAsBookmarks, |
1639 #endif | 1642 #endif |
1640 #if !defined(DISABLE_NACL) | 1643 #if !defined(DISABLE_NACL) |
1641 switches::kForcePNaClSubzero, | 1644 switches::kForcePNaClSubzero, |
1642 #endif | 1645 #endif |
1643 switches::kJavaScriptHarmony, | 1646 switches::kJavaScriptHarmony, |
1644 switches::kMessageLoopHistogrammer, | 1647 switches::kMessageLoopHistogrammer, |
| 1648 switches::kOriginTrialPublicKey, |
1645 switches::kPpapiFlashArgs, | 1649 switches::kPpapiFlashArgs, |
1646 switches::kPpapiFlashPath, | 1650 switches::kPpapiFlashPath, |
1647 switches::kPpapiFlashVersion, | 1651 switches::kPpapiFlashVersion, |
1648 switches::kProfilingAtStart, | 1652 switches::kProfilingAtStart, |
1649 switches::kProfilingFile, | 1653 switches::kProfilingFile, |
1650 switches::kProfilingFlush, | 1654 switches::kProfilingFlush, |
1651 switches::kReaderModeHeuristics, | 1655 switches::kReaderModeHeuristics, |
1652 switches::kUnsafelyTreatInsecureOriginAsSecure, | 1656 switches::kUnsafelyTreatInsecureOriginAsSecure, |
1653 translate::switches::kTranslateSecurityOrigin, | 1657 translate::switches::kTranslateSecurityOrigin, |
1654 }; | 1658 }; |
(...skipping 1287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2942 if (channel <= kMaxDisableEncryptionChannel) { | 2946 if (channel <= kMaxDisableEncryptionChannel) { |
2943 static const char* const kWebRtcDevSwitchNames[] = { | 2947 static const char* const kWebRtcDevSwitchNames[] = { |
2944 switches::kDisableWebRtcEncryption, | 2948 switches::kDisableWebRtcEncryption, |
2945 }; | 2949 }; |
2946 to_command_line->CopySwitchesFrom(from_command_line, | 2950 to_command_line->CopySwitchesFrom(from_command_line, |
2947 kWebRtcDevSwitchNames, | 2951 kWebRtcDevSwitchNames, |
2948 arraysize(kWebRtcDevSwitchNames)); | 2952 arraysize(kWebRtcDevSwitchNames)); |
2949 } | 2953 } |
2950 } | 2954 } |
2951 #endif // defined(ENABLE_WEBRTC) | 2955 #endif // defined(ENABLE_WEBRTC) |
OLD | NEW |