| Index: chrome/browser/chromeos/display/quirks_client_delegate_impl.h
|
| diff --git a/chrome/browser/chromeos/display/quirks_client_delegate_impl.h b/chrome/browser/chromeos/display/quirks_client_delegate_impl.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..94fb6d8f9a120c541a892a8d6741f25fcf7e6d60
|
| --- /dev/null
|
| +++ b/chrome/browser/chromeos/display/quirks_client_delegate_impl.h
|
| @@ -0,0 +1,36 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_CHROMEOS_DISPLAY_QUIRKS_CLIENT_DELEGATE_IMPL_H_
|
| +#define CHROME_BROWSER_CHROMEOS_DISPLAY_QUIRKS_CLIENT_DELEGATE_IMPL_H_
|
| +
|
| +#include "base/macros.h"
|
| +#include "components/quirks_client/quirks_client_manager.h"
|
| +
|
| +namespace quirks_client {
|
| +
|
| +// Working implementation of QuirksClientManager::Delegate for access to chrome-
|
| +// restricted parts.
|
| +class QuirksClientDelegateImpl : public QuirksClientManager::Delegate {
|
| + public:
|
| + QuirksClientDelegateImpl() = default;
|
| + ~QuirksClientDelegateImpl() override = default;
|
| +
|
| + // QuirksClientManager::Delegate implementation.
|
| + std::string GetApiKey() const override;
|
| +
|
| + // Returns the path to the writable display profile directory.
|
| + // On chrome device, returns /var/cache/display_profiles.
|
| + // On Linux desktop, returns {DIR_USER_DATA}/display_profiles.
|
| + // Either directory must already exist.
|
| + base::FilePath GetDisplayProfileDirectory() const override;
|
| +
|
| + int GetDaysSinceOobe() const override;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(QuirksClientDelegateImpl);
|
| +};
|
| +
|
| +} // namespace quirks_client
|
| +
|
| +#endif // CHROME_BROWSER_CHROMEOS_DISPLAY_QUIRKS_CLIENT_DELEGATE_IMPL_H_
|
|
|