| Index: chrome/browser/signin/easy_unlock_notification_controller.cc
|
| diff --git a/chrome/browser/signin/easy_unlock_notification_controller.cc b/chrome/browser/signin/easy_unlock_notification_controller.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..58b9582e53fd9c46d1f291324b787b41ee8fd3a3
|
| --- /dev/null
|
| +++ b/chrome/browser/signin/easy_unlock_notification_controller.cc
|
| @@ -0,0 +1,44 @@
|
| +// Copyright 2017 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.
|
| +
|
| +#include "chrome/browser/signin/easy_unlock_notification_controller.h"
|
| +
|
| +#include "base/memory/ptr_util.h"
|
| +
|
| +#if defined(OS_CHROMEOS)
|
| +#include "chrome/browser/signin/easy_unlock_notification_controller_chromeos.h"
|
| +#include "ui/message_center/message_center.h"
|
| +#endif
|
| +
|
| +namespace {
|
| +
|
| +// Stub implementation of EasyUnlockNotificationController for non-ChromeOS
|
| +// platforms.
|
| +class EasyUnlockNotificationControllerStub
|
| + : public EasyUnlockNotificationController {
|
| + public:
|
| + EasyUnlockNotificationControllerStub() {}
|
| + ~EasyUnlockNotificationControllerStub() override {}
|
| +
|
| + // EasyUnlockNotificationController:
|
| + void ShowChromebookAddedNotification() override {}
|
| + void ShowPairingChangeNotification() override {}
|
| + void ShowPairingChangeAppliedNotification(
|
| + const std::string& phone_name) override {}
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(EasyUnlockNotificationControllerStub);
|
| +};
|
| +
|
| +} // namespace
|
| +
|
| +std::unique_ptr<EasyUnlockNotificationController>
|
| +EasyUnlockNotificationController::Create(Profile* profile) {
|
| +#if defined(OS_CHROMEOS)
|
| + return base::MakeUnique<EasyUnlockNotificationControllerChromeOS>(
|
| + profile, message_center::MessageCenter::Get());
|
| +#else
|
| + return base::MakeUnique<EasyUnlockNotificationControllerStub>();
|
| +#endif
|
| +}
|
|
|