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

Unified Diff: chrome/browser/ui/passwords/password_manager_presenter.h

Issue 71003002: Merge browser/ui/password and browser/ui/passwords. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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/ui/passwords/password_manager_presenter.h
diff --git a/chrome/browser/ui/webui/options/password_manager_presenter.h b/chrome/browser/ui/passwords/password_manager_presenter.h
similarity index 90%
rename from chrome/browser/ui/webui/options/password_manager_presenter.h
rename to chrome/browser/ui/passwords/password_manager_presenter.h
index 3fcf164175b124bc61b67c710c57415d5062a102..2b4f853ef9acf0eb5fb38119bfc87537f03e4886 100644
--- a/chrome/browser/ui/webui/options/password_manager_presenter.h
+++ b/chrome/browser/ui/passwords/password_manager_presenter.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_PASSWORD_MANAGER_PRESENTER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS_PASSWORD_MANAGER_PRESENTER_H_
+#ifndef CHROME_BROWSER_UI_PASSWORDS_PASSWORD_MANAGER_PRESENTER_H_
+#define CHROME_BROWSER_UI_PASSWORDS_PASSWORD_MANAGER_PRESENTER_H_
#include <string>
#include <vector>
@@ -12,7 +12,6 @@
#include "base/prefs/pref_member.h"
#include "chrome/browser/password_manager/password_store.h"
#include "chrome/browser/password_manager/password_store_consumer.h"
-#include "chrome/browser/ui/webui/options/options_ui.h"
namespace autofill {
struct PasswordForm;
@@ -24,7 +23,7 @@ class PasswordUIView;
class Profile;
-namespace options {
+namespace passwords_ui {
Patrick Dubroy 2013/11/13 11:38:07 I don't think you need this namespace. I think the
shashi 2013/11/13 17:44:22 Done.
// Contains the common logic used by a PasswordUIView to
// interact with PasswordStore. It provides completion callbacks for
@@ -52,15 +51,15 @@ class PasswordManagerPresenter : public PasswordStore::Observer {
// Removes the saved password entry at |index|.
// |index| the entry index to be removed.
- void HandleRemoveSavedPassword(size_t index);
+ void RemoveSavedPassword(size_t index);
Patrick Dubroy 2013/11/13 11:38:07 +1 for renaming these :-)
// Removes the saved password exception entry at |index|.
// |index| the entry index to be removed.
- void HandleRemovePasswordException(size_t index);
+ void RemovePasswordException(size_t index);
// Requests the plain text password for entry at |index| to be revealed.
// |index| The index of the entry.
- void HandleRequestShowPassword(size_t index);
+ void RequestShowPassword(size_t index);
private:
friend class PasswordManagerPresenterTest;
@@ -141,11 +140,11 @@ class PasswordManagerPresenter : public PasswordStore::Observer {
base::TimeTicks last_authentication_time_;
// UI view that owns this presenter.
- passwords_ui::PasswordUIView* password_view_;
+ PasswordUIView* password_view_;
DISALLOW_COPY_AND_ASSIGN(PasswordManagerPresenter);
};
-} // namespace options
+} // namespace passwords_ui
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_PASSWORD_MANAGER_PRESENTER_H_
+#endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORD_MANAGER_PRESENTER_H_

Powered by Google App Engine
This is Rietveld 408576698