Index: chrome/browser/chromeos/display/quirks_manager_delegate_impl.cc |
diff --git a/chrome/browser/chromeos/display/quirks_manager_delegate_impl.cc b/chrome/browser/chromeos/display/quirks_manager_delegate_impl.cc |
index f4d51e483d93a331ad7d59cb1638fcc7289d8791..a755cebab05417ea7bb61dfa9c29f83b3dadf6dc 100644 |
--- a/chrome/browser/chromeos/display/quirks_manager_delegate_impl.cc |
+++ b/chrome/browser/chromeos/display/quirks_manager_delegate_impl.cc |
@@ -9,6 +9,7 @@ |
#include "base/task_runner_util.h" |
#include "base/threading/thread_restrictions.h" |
#include "chrome/browser/chromeos/login/startup_utils.h" |
+#include "chrome/browser/chromeos/settings/cros_settings.h" |
#include "chrome/common/chrome_paths.h" |
#include "chromeos/chromeos_paths.h" |
#include "content/public/browser/browser_thread.h" |
@@ -52,6 +53,13 @@ base::FilePath QuirksManagerDelegateImpl::GetDownloadDisplayProfileDirectory() |
return directory; |
} |
+bool QuirksManagerDelegateImpl::DevicePolicyEnabled() const { |
+ bool quirks_enabled = true; |
+ chromeos::CrosSettings::Get()->GetBoolean( |
+ chromeos::kDeviceQuirksDownloadEnabled, &quirks_enabled); |
+ return quirks_enabled; |
+} |
+ |
void QuirksManagerDelegateImpl::GetDaysSinceOobe( |
QuirksManager::DaysSinceOobeCallback callback) const { |
base::PostTaskAndReplyWithResult( |