Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: chrome/browser/password_manager/native_backend_gnome_x.h

Issue 906973007: PasswordStore: Clean up expectations about rewriting vectors of forms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Just rebased Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/password_manager/native_backend_gnome_x.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/password_manager/native_backend_gnome_x.h
diff --git a/chrome/browser/password_manager/native_backend_gnome_x.h b/chrome/browser/password_manager/native_backend_gnome_x.h
index 438917a5e009e69a0d92fc5802e092d0db41d404..9545ef6ece59d445c843f2700ee19ad2e10029dd 100644
--- a/chrome/browser/password_manager/native_backend_gnome_x.h
+++ b/chrome/browser/password_manager/native_backend_gnome_x.h
@@ -20,6 +20,7 @@
#include <string>
#include "base/basictypes.h"
+#include "base/compiler_specific.h"
#include "base/memory/scoped_vector.h"
#include "base/time/time.h"
#include "chrome/browser/password_manager/password_store_factory.h"
@@ -120,19 +121,24 @@ class NativeBackendGnome : public PasswordStoreX::NativeBackend,
// Adds a login form without checking for one to replace first.
bool RawAddLogin(const autofill::PasswordForm& form);
- // Reads PasswordForms from the keyring with the given autofillability state.
+ // Retrieves all autofillable or all blacklisted credentials (depending on
+ // |autofillable|) from the keyring into |forms|, overwriting the original
+ // contents of |forms|. Returns true on success.
bool GetLoginsList(bool autofillable,
- ScopedVector<autofill::PasswordForm>* forms);
+ ScopedVector<autofill::PasswordForm>* forms)
+ WARN_UNUSED_RESULT;
// Helper for GetLoginsCreatedBetween().
- bool GetAllLogins(ScopedVector<autofill::PasswordForm>* forms);
+ bool GetAllLogins(ScopedVector<autofill::PasswordForm>* forms)
+ WARN_UNUSED_RESULT;
// Retrieves password created/synced in the time interval. Returns |true| if
// the operation succeeded.
bool GetLoginsBetween(base::Time get_begin,
base::Time get_end,
TimestampToCompare date_to_compare,
- ScopedVector<autofill::PasswordForm>* forms);
+ ScopedVector<autofill::PasswordForm>* forms)
+ WARN_UNUSED_RESULT;
// Removes password created/synced in the time interval. Returns |true| if the
// operation succeeded. |changes| will contain the changes applied.
@@ -141,9 +147,6 @@ class NativeBackendGnome : public PasswordStoreX::NativeBackend,
TimestampToCompare date_to_compare,
password_manager::PasswordStoreChangeList* changes);
- // Generates a profile-specific app string based on profile_id_.
- std::string GetProfileSpecificAppString() const;
-
// The local profile id, used to generate the app string.
const LocalProfileId profile_id_;
« no previous file with comments | « no previous file | chrome/browser/password_manager/native_backend_gnome_x.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698