OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/ui/webui/options/easy_unlock_handler.h" | 5 #include "chrome/browser/ui/webui/options/easy_unlock_handler.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
10 #include "chrome/browser/signin/easy_unlock_service.h" | 10 #include "chrome/browser/signin/easy_unlock_service.h" |
| 11 #include "chrome/grit/generated_resources.h" |
11 #include "content/public/browser/web_ui.h" | 12 #include "content/public/browser/web_ui.h" |
12 #include "grit/generated_resources.h" | |
13 | 13 |
14 namespace options { | 14 namespace options { |
15 | 15 |
16 EasyUnlockHandler::EasyUnlockHandler() { | 16 EasyUnlockHandler::EasyUnlockHandler() { |
17 } | 17 } |
18 | 18 |
19 EasyUnlockHandler::~EasyUnlockHandler() { | 19 EasyUnlockHandler::~EasyUnlockHandler() { |
20 EasyUnlockService::Get(Profile::FromWebUI(web_ui()))->RemoveObserver(this); | 20 EasyUnlockService::Get(Profile::FromWebUI(web_ui()))->RemoveObserver(this); |
21 } | 21 } |
22 | 22 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 98 |
99 void EasyUnlockHandler::HandleRequestTurnOff(const base::ListValue* args) { | 99 void EasyUnlockHandler::HandleRequestTurnOff(const base::ListValue* args) { |
100 EasyUnlockService::Get(Profile::FromWebUI(web_ui()))->RunTurnOffFlow(); | 100 EasyUnlockService::Get(Profile::FromWebUI(web_ui()))->RunTurnOffFlow(); |
101 } | 101 } |
102 | 102 |
103 void EasyUnlockHandler::HandlePageDismissed(const base::ListValue* args) { | 103 void EasyUnlockHandler::HandlePageDismissed(const base::ListValue* args) { |
104 EasyUnlockService::Get(Profile::FromWebUI(web_ui()))->ResetTurnOffFlow(); | 104 EasyUnlockService::Get(Profile::FromWebUI(web_ui()))->ResetTurnOffFlow(); |
105 } | 105 } |
106 | 106 |
107 } // namespace options | 107 } // namespace options |
OLD | NEW |