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 30 matching lines...) Expand all Loading... |
1630 switches::kEnableNaClNonSfiMode, | 1633 switches::kEnableNaClNonSfiMode, |
1631 switches::kEnablePNaClSubzero, | 1634 switches::kEnablePNaClSubzero, |
1632 #endif | 1635 #endif |
1633 switches::kEnableNetBenchmarking, | 1636 switches::kEnableNetBenchmarking, |
1634 switches::kEnableNewBookmarkApps, | 1637 switches::kEnableNewBookmarkApps, |
1635 #if defined(OS_ANDROID) | 1638 #if defined(OS_ANDROID) |
1636 switches::kEnableOfflinePagesAsBookmarks, | 1639 switches::kEnableOfflinePagesAsBookmarks, |
1637 #endif | 1640 #endif |
1638 switches::kJavaScriptHarmony, | 1641 switches::kJavaScriptHarmony, |
1639 switches::kMessageLoopHistogrammer, | 1642 switches::kMessageLoopHistogrammer, |
| 1643 switches::kOriginTrialPublicKey, |
1640 switches::kPpapiFlashArgs, | 1644 switches::kPpapiFlashArgs, |
1641 switches::kPpapiFlashPath, | 1645 switches::kPpapiFlashPath, |
1642 switches::kPpapiFlashVersion, | 1646 switches::kPpapiFlashVersion, |
1643 switches::kProfilingAtStart, | 1647 switches::kProfilingAtStart, |
1644 switches::kProfilingFile, | 1648 switches::kProfilingFile, |
1645 switches::kProfilingFlush, | 1649 switches::kProfilingFlush, |
1646 switches::kReaderModeHeuristics, | 1650 switches::kReaderModeHeuristics, |
1647 switches::kUnsafelyTreatInsecureOriginAsSecure, | 1651 switches::kUnsafelyTreatInsecureOriginAsSecure, |
1648 translate::switches::kTranslateSecurityOrigin, | 1652 translate::switches::kTranslateSecurityOrigin, |
1649 }; | 1653 }; |
(...skipping 1257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2907 if (channel <= kMaxDisableEncryptionChannel) { | 2911 if (channel <= kMaxDisableEncryptionChannel) { |
2908 static const char* const kWebRtcDevSwitchNames[] = { | 2912 static const char* const kWebRtcDevSwitchNames[] = { |
2909 switches::kDisableWebRtcEncryption, | 2913 switches::kDisableWebRtcEncryption, |
2910 }; | 2914 }; |
2911 to_command_line->CopySwitchesFrom(from_command_line, | 2915 to_command_line->CopySwitchesFrom(from_command_line, |
2912 kWebRtcDevSwitchNames, | 2916 kWebRtcDevSwitchNames, |
2913 arraysize(kWebRtcDevSwitchNames)); | 2917 arraysize(kWebRtcDevSwitchNames)); |
2914 } | 2918 } |
2915 } | 2919 } |
2916 #endif // defined(ENABLE_WEBRTC) | 2920 #endif // defined(ENABLE_WEBRTC) |
OLD | NEW |