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

Unified Diff: ash/display/display_color_manager_chromeos_unittest.cc

Issue 2016883003: Remove Quirks flag, limit server retries (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/app/chromeos_strings.grdp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_color_manager_chromeos_unittest.cc
diff --git a/ash/display/display_color_manager_chromeos_unittest.cc b/ash/display/display_color_manager_chromeos_unittest.cc
index f6b745aeff7ae96550b84170b27c95c1ba723217..aea1a4d57037fb109aa9c80ce492bd79c718cc85 100644
--- a/ash/display/display_color_manager_chromeos_unittest.cc
+++ b/ash/display/display_color_manager_chromeos_unittest.cc
@@ -4,7 +4,6 @@
#include "ash/display/display_color_manager_chromeos.h"
-#include "base/command_line.h"
#include "base/files/file_util.h"
#include "base/memory/scoped_vector.h"
#include "base/message_loop/message_loop.h"
@@ -15,7 +14,6 @@
#include "base/test/sequenced_worker_pool_owner.h"
#include "chromeos/chromeos_paths.h"
#include "components/quirks/quirks_manager.h"
-#include "components/quirks/switches.h"
#include "net/url_request/url_request_context_getter.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/display/chromeos/test/action_logger_util.h"
@@ -94,8 +92,8 @@ class QuirksManagerDelegateTestImpl : public quirks::QuirksManager::Delegate {
return base::FilePath();
}
- // Unused by these tests.
- bool DevicePolicyEnabled() const override { return true; }
+ // |false| prevents attempts at Quirks Server contact.
+ bool DevicePolicyEnabled() const override { return false; }
// Unused by these tests.
void GetDaysSinceOobe(
@@ -114,9 +112,6 @@ class QuirksManagerDelegateTestImpl : public quirks::QuirksManager::Delegate {
class DisplayColorManagerTest : public testing::Test {
public:
void SetUp() override {
- base::CommandLine::ForCurrentProcess()->AppendSwitch(
- quirks::switches::kDisableQuirksClient);
-
pool_owner_.reset(
new base::SequencedWorkerPoolOwner(3, "DisplayColorManagerTest"));
log_.reset(new ui::test::ActionLogger());
« no previous file with comments | « no previous file | chrome/app/chromeos_strings.grdp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698