Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(855)

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 212533004: Add chrome-side code for autoreload experiment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Move experiment use to browser Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1530 matching lines...) Expand 10 before | Expand all | Expand 10 after
1541 command_line->AppendSwitch(switches::kInstantProcess); 1541 command_line->AppendSwitch(switches::kInstantProcess);
1542 1542
1543 #if !defined(OS_CHROMEOS) 1543 #if !defined(OS_CHROMEOS)
1544 SigninManager* signin_manager = 1544 SigninManager* signin_manager =
1545 SigninManagerFactory::GetForProfile(profile); 1545 SigninManagerFactory::GetForProfile(profile);
1546 if (signin_manager && signin_manager->IsSigninProcess(process->GetID())) 1546 if (signin_manager && signin_manager->IsSigninProcess(process->GetID()))
1547 command_line->AppendSwitch(switches::kSigninProcess); 1547 command_line->AppendSwitch(switches::kSigninProcess);
1548 #endif 1548 #endif
1549 } 1549 }
1550 1550
1551 {
1552 // Enable auto-reload if this session is in the field trial or the user
1553 // explicitly enabled it.
1554 std::string group =
1555 base::FieldTrialList::FindFullName("AutoReloadExperiment");
1556 if (group == "Enabled" ||
1557 browser_command_line.HasSwitch(switches::kEnableOfflineAutoReload))
1558 command_line->AppendSwitch(switches::kEnableOfflineAutoReload);
mmenke 2014/03/28 14:54:02 nit: +braces
Elly Fong-Jones 2014/03/28 15:23:37 Done.
1559 }
1560
1551 // Please keep this in alphabetical order. 1561 // Please keep this in alphabetical order.
1552 static const char* const kSwitchNames[] = { 1562 static const char* const kSwitchNames[] = {
1553 autofill::switches::kDisableIgnoreAutocompleteOff, 1563 autofill::switches::kDisableIgnoreAutocompleteOff,
1554 autofill::switches::kDisableInteractiveAutocomplete, 1564 autofill::switches::kDisableInteractiveAutocomplete,
1555 autofill::switches::kDisablePasswordGeneration, 1565 autofill::switches::kDisablePasswordGeneration,
1556 autofill::switches::kEnableInteractiveAutocomplete, 1566 autofill::switches::kEnableInteractiveAutocomplete,
1557 autofill::switches::kEnablePasswordGeneration, 1567 autofill::switches::kEnablePasswordGeneration,
1558 autofill::switches::kLocalHeuristicsOnlyForPasswordGeneration, 1568 autofill::switches::kLocalHeuristicsOnlyForPasswordGeneration,
1559 extensions::switches::kAllowHTTPBackgroundPage, 1569 extensions::switches::kAllowHTTPBackgroundPage,
1560 extensions::switches::kAllowLegacyExtensionManifests, 1570 extensions::switches::kAllowLegacyExtensionManifests,
1561 extensions::switches::kEnableExperimentalExtensionApis, 1571 extensions::switches::kEnableExperimentalExtensionApis,
1562 extensions::switches::kExtensionsOnChromeURLs, 1572 extensions::switches::kExtensionsOnChromeURLs,
1563 // TODO(victorhsieh): remove the following flag once we move PPAPI FileIO 1573 // TODO(victorhsieh): remove the following flag once we move PPAPI FileIO
1564 // to browser. 1574 // to browser.
1565 switches::kAllowNaClFileHandleAPI, 1575 switches::kAllowNaClFileHandleAPI,
1566 switches::kAppsCheckoutURL, 1576 switches::kAppsCheckoutURL,
1567 switches::kAppsGalleryURL, 1577 switches::kAppsGalleryURL,
1568 switches::kCloudPrintServiceURL, 1578 switches::kCloudPrintServiceURL,
1569 switches::kDisableBundledPpapiFlash, 1579 switches::kDisableBundledPpapiFlash,
1570 switches::kDisableExtensionsResourceWhitelist, 1580 switches::kDisableExtensionsResourceWhitelist,
1571 switches::kDisablePnacl, 1581 switches::kDisablePnacl,
1572 switches::kDisableScriptedPrintThrottling, 1582 switches::kDisableScriptedPrintThrottling,
1573 switches::kEnableAdview, 1583 switches::kEnableAdview,
1574 switches::kEnableAppWindowControls, 1584 switches::kEnableAppWindowControls,
1575 switches::kEnableBenchmarking, 1585 switches::kEnableBenchmarking,
1576 switches::kEnableNaCl, 1586 switches::kEnableNaCl,
1577 switches::kEnableNaClDebug, 1587 switches::kEnableNaClDebug,
1578 switches::kEnableNaClNonSfiMode, 1588 switches::kEnableNaClNonSfiMode,
1579 switches::kEnableNetBenchmarking, 1589 switches::kEnableNetBenchmarking,
1580 switches::kEnableOfflineAutoReload,
1581 switches::kEnableStreamlinedHostedApps, 1590 switches::kEnableStreamlinedHostedApps,
1582 switches::kEnableWatchdog, 1591 switches::kEnableWatchdog,
1583 switches::kMemoryProfiling, 1592 switches::kMemoryProfiling,
1584 switches::kMessageLoopHistogrammer, 1593 switches::kMessageLoopHistogrammer,
1585 switches::kNoJsRandomness, 1594 switches::kNoJsRandomness,
1586 switches::kOutOfProcessPdf, 1595 switches::kOutOfProcessPdf,
1587 switches::kPlaybackMode, 1596 switches::kPlaybackMode,
1588 switches::kPpapiFlashArgs, 1597 switches::kPpapiFlashArgs,
1589 switches::kPpapiFlashPath, 1598 switches::kPpapiFlashPath,
1590 switches::kPpapiFlashVersion, 1599 switches::kPpapiFlashVersion,
(...skipping 1144 matching lines...) Expand 10 before | Expand all | Expand 10 after
2735 switches::kDisableWebRtcEncryption, 2744 switches::kDisableWebRtcEncryption,
2736 }; 2745 };
2737 to_command_line->CopySwitchesFrom(from_command_line, 2746 to_command_line->CopySwitchesFrom(from_command_line,
2738 kWebRtcDevSwitchNames, 2747 kWebRtcDevSwitchNames,
2739 arraysize(kWebRtcDevSwitchNames)); 2748 arraysize(kWebRtcDevSwitchNames));
2740 } 2749 }
2741 } 2750 }
2742 #endif // defined(ENABLE_WEBRTC) 2751 #endif // defined(ENABLE_WEBRTC)
2743 2752
2744 } // namespace chrome 2753 } // namespace chrome
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/net/net_error_helper.cc » ('j') | chrome/renderer/net/net_error_helper.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698