-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[umPwm] Move core methods of password store into separate interface
CL shouldn't change any behavior. Only a small subset of password store methods should be required by most callers. This CL introduces an interface that contains the core methods of the password store. In follow-ups, callers will only rely on that interface to access the store. Bug: 1218413 Change-Id: Idc360189ef48dfa500a44fd6d9d8b84cc5d47080 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2953847 Reviewed-by: Vasilii Sukhanov <vasilii@chromium.org> Commit-Queue: Friedrich [CET] <fhorschig@chromium.org> Cr-Commit-Position: refs/heads/master@{#892065}
- Loading branch information
Showing
7 changed files
with
219 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
components/password_manager/core/browser/password_store_interface.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Copyright 2021 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 "components/password_manager/core/browser/password_store_interface.h" | ||
#include "base/notreached.h" | ||
|
||
namespace password_manager { | ||
|
||
void PasswordStoreInterface::Observer::OnLoginsChangedIn( | ||
PasswordStoreInterface* store, | ||
const PasswordStoreChangeList& changes) { | ||
OnLoginsChanged(changes); | ||
} | ||
|
||
void PasswordStoreInterface::Observer::OnLoginsRetained( | ||
const std::vector<PasswordForm>& retained_passwords) { | ||
// TODO(crbug.com/1217070): Make sure observers use this notification when | ||
// it is emitted. | ||
NOTIMPLEMENTED(); | ||
} | ||
|
||
} // namespace password_manager |
Oops, something went wrong.