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

Unified Diff: chrome/browser/ui/passwords/test_manage_passwords_bubble_ui_controller.cc

Issue 232753002: Password bubble: Deplatformify ManagePasswordsBubbleView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: chromium-style error. Created 6 years, 8 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/ui/passwords/test_manage_passwords_bubble_ui_controller.cc
diff --git a/chrome/browser/ui/passwords/test_manage_passwords_bubble_ui_controller.cc b/chrome/browser/ui/passwords/test_manage_passwords_bubble_ui_controller.cc
new file mode 100644
index 0000000000000000000000000000000000000000..b7d22515e1bd778dde2db5e9ea88569b589faa68
--- /dev/null
+++ b/chrome/browser/ui/passwords/test_manage_passwords_bubble_ui_controller.cc
@@ -0,0 +1,41 @@
+// Copyright 2014 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 "chrome/browser/ui/passwords/test_manage_passwords_bubble_ui_controller.h"
+
+#include "content/public/browser/web_contents.h"
+
+TestManagePasswordsBubbleUIController::TestManagePasswordsBubbleUIController(
+ content::WebContents* contents)
+ : ManagePasswordsBubbleUIController(contents),
+ navigated_to_settings_page_(false),
+ saved_password_(false),
+ never_saved_password_(false) {
+ contents->SetUserData(UserDataKey(), this);
+}
+
+TestManagePasswordsBubbleUIController::
+ ~TestManagePasswordsBubbleUIController() {}
+
+void TestManagePasswordsBubbleUIController::
+ NavigateToPasswordManagerSettingsPage() {
+ navigated_to_settings_page_ = true;
+}
+
+const autofill::PasswordForm&
+ TestManagePasswordsBubbleUIController::PendingCredentials() const {
+ return pending_credentials_;
+}
+
+bool TestManagePasswordsBubbleUIController::IsInstalled() const {
+ return web_contents()->GetUserData(UserDataKey()) == this;
+}
+
+void TestManagePasswordsBubbleUIController::SavePassword() {
+ saved_password_ = true;
+}
+
+void TestManagePasswordsBubbleUIController::NeverSavePassword() {
+ never_saved_password_ = true;
+}

Powered by Google App Engine
This is Rietveld 408576698