Support Using ScopedFeatureList in SetUp for Browser Test

Currently we don't support using ScopedFeatureList::* in SetUp for InProcessBrowserTest since we clear FeatureList at the beginning of InProcessBrowserTest::SetUp.

In this patch, we remove the FeatureList::ClearInstanceForTesting() and move the feature change in InProcessBrowserTest to ScopedFeatureList. So we are able to move all feature list change calls SetUp and use ScopedFeatureList::*.

BUG=713390

Review-Url: https://codereview.chromium.org/2876153002
Cr-Commit-Position: refs/heads/master@{#485096}


CrOS-Libchrome-Original-Commit: 83b3cdfd66d9ce73d5f4a8a0d4987d32f2ff0e5b
2 files changed
tree: cbbec20de60822acceee75d5e8531658f644ebc0
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/