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/password_manager_internals/password_manager_in
ternals_ui.h" | 5 #include "chrome/browser/ui/webui/password_manager_internals/password_manager_in
ternals_ui.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
11 #include "base/strings/string_split.h" | 11 #include "base/strings/string_split.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/common/url_constants.h" | 14 #include "chrome/common/url_constants.h" |
| 15 #include "chrome/grit/password_manager_internals_resources.h" |
15 #include "components/password_manager/content/browser/password_manager_internals
_service_factory.h" | 16 #include "components/password_manager/content/browser/password_manager_internals
_service_factory.h" |
16 #include "components/password_manager/core/browser/password_manager_internals_se
rvice.h" | 17 #include "components/password_manager/core/browser/password_manager_internals_se
rvice.h" |
17 #include "components/password_manager/core/common/password_manager_pref_names.h" | 18 #include "components/password_manager/core/common/password_manager_pref_names.h" |
18 #include "components/prefs/pref_service.h" | 19 #include "components/prefs/pref_service.h" |
19 #include "content/public/browser/web_contents.h" | 20 #include "content/public/browser/web_contents.h" |
20 #include "content/public/browser/web_ui.h" | 21 #include "content/public/browser/web_ui.h" |
21 #include "content/public/browser/web_ui_data_source.h" | 22 #include "content/public/browser/web_ui_data_source.h" |
22 #include "grit/password_manager_internals_resources.h" | |
23 #include "net/base/escape.h" | 23 #include "net/base/escape.h" |
24 | 24 |
25 using password_manager::PasswordManagerInternalsService; | 25 using password_manager::PasswordManagerInternalsService; |
26 using password_manager::PasswordManagerInternalsServiceFactory; | 26 using password_manager::PasswordManagerInternalsServiceFactory; |
27 | 27 |
28 namespace { | 28 namespace { |
29 | 29 |
30 content::WebUIDataSource* CreatePasswordManagerInternalsHTMLSource() { | 30 content::WebUIDataSource* CreatePasswordManagerInternalsHTMLSource() { |
31 content::WebUIDataSource* source = content::WebUIDataSource::Create( | 31 content::WebUIDataSource* source = content::WebUIDataSource::Create( |
32 chrome::kChromeUIPasswordManagerInternalsHost); | 32 chrome::kChromeUIPasswordManagerInternalsHost); |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 profile->GetPrefs()->SetBoolean( | 121 profile->GetPrefs()->SetBoolean( |
122 password_manager::prefs::kWasAutoSignInFirstRunExperienceShown, false); | 122 password_manager::prefs::kWasAutoSignInFirstRunExperienceShown, false); |
123 | 123 |
124 PasswordManagerInternalsService* service = | 124 PasswordManagerInternalsService* service = |
125 PasswordManagerInternalsServiceFactory::GetForBrowserContext( | 125 PasswordManagerInternalsServiceFactory::GetForBrowserContext( |
126 Profile::FromWebUI(web_ui())); | 126 Profile::FromWebUI(web_ui())); |
127 if (service) | 127 if (service) |
128 service->ProcessLog("Reset auto sign-in first run experience: yes"); | 128 service->ProcessLog("Reset auto sign-in first run experience: yes"); |
129 } | 129 } |
130 } | 130 } |
OLD | NEW |