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 1548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1559 browser_command_line.HasSwitch(switches::kEnableOfflineAutoReload); | 1559 browser_command_line.HasSwitch(switches::kEnableOfflineAutoReload); |
1560 bool hard_disabled = | 1560 bool hard_disabled = |
1561 browser_command_line.HasSwitch(switches::kDisableOfflineAutoReload); | 1561 browser_command_line.HasSwitch(switches::kDisableOfflineAutoReload); |
1562 if (hard_enabled) { | 1562 if (hard_enabled) { |
1563 command_line->AppendSwitch(switches::kEnableOfflineAutoReload); | 1563 command_line->AppendSwitch(switches::kEnableOfflineAutoReload); |
1564 } else if (!hard_disabled) { | 1564 } else if (!hard_disabled) { |
1565 chrome::VersionInfo::Channel channel = | 1565 chrome::VersionInfo::Channel channel = |
1566 chrome::VersionInfo::GetChannel(); | 1566 chrome::VersionInfo::GetChannel(); |
1567 #if defined(OS_ANDROID) || defined(OS_IOS) | 1567 #if defined(OS_ANDROID) || defined(OS_IOS) |
1568 chrome::VersionInfo::Channel kForceChannel = | 1568 chrome::VersionInfo::Channel kForceChannel = |
1569 chrome::VersionInfo::CHANNEL_DEV; | 1569 chrome::VersionInfo::CHANNEL_UNKNOWN; |
Randy Smith (Not in Mondays)
2014/05/12 18:51:32
I'm concerned that using CHANNEL_UNKNOWN will mean
| |
1570 #else | 1570 #else |
1571 chrome::VersionInfo::Channel kForceChannel = | 1571 chrome::VersionInfo::Channel kForceChannel = |
1572 chrome::VersionInfo::CHANNEL_CANARY; | 1572 chrome::VersionInfo::CHANNEL_CANARY; |
1573 #endif | 1573 #endif |
1574 std::string group = | 1574 std::string group = |
1575 base::FieldTrialList::FindFullName("AutoReloadExperiment"); | 1575 base::FieldTrialList::FindFullName("AutoReloadExperiment"); |
1576 if (channel <= kForceChannel || group == "Enabled") | 1576 if (channel <= kForceChannel || group == "Enabled") |
1577 command_line->AppendSwitch(switches::kEnableOfflineAutoReload); | 1577 command_line->AppendSwitch(switches::kEnableOfflineAutoReload); |
1578 } | 1578 } |
1579 } | 1579 } |
(...skipping 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2715 switches::kDisableWebRtcEncryption, | 2715 switches::kDisableWebRtcEncryption, |
2716 }; | 2716 }; |
2717 to_command_line->CopySwitchesFrom(from_command_line, | 2717 to_command_line->CopySwitchesFrom(from_command_line, |
2718 kWebRtcDevSwitchNames, | 2718 kWebRtcDevSwitchNames, |
2719 arraysize(kWebRtcDevSwitchNames)); | 2719 arraysize(kWebRtcDevSwitchNames)); |
2720 } | 2720 } |
2721 } | 2721 } |
2722 #endif // defined(ENABLE_WEBRTC) | 2722 #endif // defined(ENABLE_WEBRTC) |
2723 | 2723 |
2724 } // namespace chrome | 2724 } // namespace chrome |
OLD | NEW |