OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/chromeos/extensions/quick_unlock_private/quick_unlock_p
rivate_api.h" | 5 #include "chrome/browser/chromeos/extensions/quick_unlock_private/quick_unlock_p
rivate_api.h" |
6 | 6 |
| 7 #include "base/memory/ptr_util.h" |
7 #include "chrome/browser/chromeos/login/quick_unlock/pin_storage.h" | 8 #include "chrome/browser/chromeos/login/quick_unlock/pin_storage.h" |
8 #include "chrome/browser/chromeos/login/quick_unlock/pin_storage_factory.h" | 9 #include "chrome/browser/chromeos/login/quick_unlock/pin_storage_factory.h" |
9 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 10 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
10 #include "chrome/common/pref_names.h" | 11 #include "chrome/common/pref_names.h" |
11 #include "chromeos/login/auth/extended_authenticator.h" | 12 #include "chromeos/login/auth/extended_authenticator.h" |
12 #include "chromeos/login/auth/user_context.h" | 13 #include "chromeos/login/auth/user_context.h" |
13 #include "components/prefs/pref_service.h" | 14 #include "components/prefs/pref_service.h" |
14 #include "extensions/browser/event_router.h" | 15 #include "extensions/browser/event_router.h" |
15 | 16 |
16 namespace extensions { | 17 namespace extensions { |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 } | 422 } |
422 | 423 |
423 std::unique_ptr<base::ListValue> args = OnActiveModesChanged::Create(modes); | 424 std::unique_ptr<base::ListValue> args = OnActiveModesChanged::Create(modes); |
424 std::unique_ptr<Event> event( | 425 std::unique_ptr<Event> event( |
425 new Event(events::QUICK_UNLOCK_PRIVATE_ON_ACTIVE_MODES_CHANGED, | 426 new Event(events::QUICK_UNLOCK_PRIVATE_ON_ACTIVE_MODES_CHANGED, |
426 OnActiveModesChanged::kEventName, std::move(args))); | 427 OnActiveModesChanged::kEventName, std::move(args))); |
427 EventRouter::Get(browser_context())->BroadcastEvent(std::move(event)); | 428 EventRouter::Get(browser_context())->BroadcastEvent(std::move(event)); |
428 } | 429 } |
429 | 430 |
430 } // namespace extensions | 431 } // namespace extensions |
OLD | NEW |