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/password_manager/chrome_password_manager_client.h" | 5 #include "chrome/browser/password_manager/chrome_password_manager_client.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <tuple> | 10 #include <tuple> |
11 | 11 |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/metrics/field_trial.h" | 13 #include "base/metrics/field_trial.h" |
14 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
15 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
16 #include "chrome/browser/sync/profile_sync_service_factory.h" | 16 #include "chrome/browser/sync/profile_sync_service_factory.h" |
17 #include "chrome/browser/sync/profile_sync_test_util.h" | 17 #include "chrome/browser/sync/profile_sync_test_util.h" |
18 #include "chrome/common/channel_info.h" | 18 #include "chrome/common/channel_info.h" |
19 #include "chrome/test/base/chrome_render_view_host_test_harness.h" | 19 #include "chrome/test/base/chrome_render_view_host_test_harness.h" |
20 #include "chrome/test/base/testing_profile.h" | 20 #include "chrome/test/base/testing_profile.h" |
21 #include "components/autofill/content/common/autofill_messages.h" | 21 #include "components/autofill/content/common/autofill_messages.h" |
22 #include "components/password_manager/content/browser/password_manager_internals
_service_factory.h" | 22 #include "components/password_manager/content/browser/password_manager_internals
_service_factory.h" |
| 23 #include "components/password_manager/content/common/credential_manager_messages
.h" |
23 #include "components/password_manager/core/browser/credentials_filter.h" | 24 #include "components/password_manager/core/browser/credentials_filter.h" |
24 #include "components/password_manager/core/browser/log_manager.h" | 25 #include "components/password_manager/core/browser/log_manager.h" |
25 #include "components/password_manager/core/browser/log_receiver.h" | 26 #include "components/password_manager/core/browser/log_receiver.h" |
26 #include "components/password_manager/core/browser/log_router.h" | 27 #include "components/password_manager/core/browser/log_router.h" |
27 #include "components/password_manager/core/browser/password_manager_internals_se
rvice.h" | 28 #include "components/password_manager/core/browser/password_manager_internals_se
rvice.h" |
28 #include "components/password_manager/core/browser/password_manager_test_utils.h
" | 29 #include "components/password_manager/core/browser/password_manager_test_utils.h
" |
29 #include "components/password_manager/core/common/credential_manager_types.h" | 30 #include "components/password_manager/core/common/credential_manager_types.h" |
30 #include "components/password_manager/core/common/password_manager_features.h" | 31 #include "components/password_manager/core/common/password_manager_features.h" |
31 #include "components/password_manager/core/common/password_manager_pref_names.h" | 32 #include "components/password_manager/core/common/password_manager_pref_names.h" |
32 #include "components/prefs/pref_registry_simple.h" | 33 #include "components/prefs/pref_registry_simple.h" |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 PasswordManagerInternalsServiceFactory::GetForBrowserContext(profile()); | 349 PasswordManagerInternalsServiceFactory::GetForBrowserContext(profile()); |
349 DummyLogReceiver log_receiver; | 350 DummyLogReceiver log_receiver; |
350 EXPECT_EQ(std::string(), log_router->RegisterReceiver(&log_receiver)); | 351 EXPECT_EQ(std::string(), log_router->RegisterReceiver(&log_receiver)); |
351 | 352 |
352 // But then navigate to a WebUI, there the logging should not be active. | 353 // But then navigate to a WebUI, there the logging should not be active. |
353 NavigateAndCommit(GURL("about:password-manager-internals")); | 354 NavigateAndCommit(GURL("about:password-manager-internals")); |
354 EXPECT_FALSE(GetClient()->GetLogManager()->IsLoggingActive()); | 355 EXPECT_FALSE(GetClient()->GetLogManager()->IsLoggingActive()); |
355 | 356 |
356 log_router->UnregisterReceiver(&log_receiver); | 357 log_router->UnregisterReceiver(&log_receiver); |
357 } | 358 } |
OLD | NEW |