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

Unified Diff: chrome/browser/extensions/api/passwords_private/passwords_private_delegate_impl.h

Issue 1833773002: [Extensions] Convert APIs to use movable types [8] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: chrome/browser/extensions/api/passwords_private/passwords_private_delegate_impl.h
diff --git a/chrome/browser/extensions/api/passwords_private/passwords_private_delegate_impl.h b/chrome/browser/extensions/api/passwords_private/passwords_private_delegate_impl.h
index 5d4c2208ddfed17e1edd0e5f08132baa86b53ada..dae28d6bbde407d57f8d3df7ed5e13a011e6d751 100644
--- a/chrome/browser/extensions/api/passwords_private/passwords_private_delegate_impl.h
+++ b/chrome/browser/extensions/api/passwords_private/passwords_private_delegate_impl.h
@@ -14,7 +14,7 @@
#include "base/callback.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
-#include "base/observer_list_threadsafe.h"
+#include "base/observer_list.h"
#include "build/build_config.h"
#include "chrome/browser/extensions/api/passwords_private/passwords_private_delegate.h"
#include "chrome/browser/ui/passwords/password_manager_presenter.h"
@@ -96,8 +96,7 @@ class PasswordsPrivateDelegateImpl : public PasswordsPrivateDelegate,
// The current list of entries/exceptions. Cached here so that when new
// observers are added, this delegate can send the current lists without
// having to request them from |password_manager_presenter_| again.
- std::vector<linked_ptr<api::passwords_private::PasswordUiEntry>>
- current_entries_;
+ std::vector<api::passwords_private::PasswordUiEntry> current_entries_;
std::vector<std::string> current_exceptions_;
// Whether SetPasswordList and SetPasswordExceptionList have been called, and
@@ -120,7 +119,7 @@ class PasswordsPrivateDelegateImpl : public PasswordsPrivateDelegate,
content::WebContents* web_contents_;
// The observers.
- scoped_refptr<base::ObserverListThreadSafe<Observer>> observers_;
+ base::ObserverList<Observer> observers_;
// Map from origin URL and username to the index of |password_list_| at which
// the corresponding entry resides.

Powered by Google App Engine
This is Rietveld 408576698