| 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..f9681429cc77ee0d71939b9e08fd5ded35d7620d
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/passwords/test_manage_passwords_bubble_ui_controller.cc
|
| @@ -0,0 +1,36 @@
|
| +// 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;
|
| +}
|
| +
|
| +bool TestManagePasswordsBubbleUIController::IsInstalled() const {
|
| + return web_contents()->GetUserData(UserDataKey()) == this;
|
| +}
|
| +
|
| +void TestManagePasswordsBubbleUIController::SavePassword() {
|
| + saved_password_ = true;
|
| +}
|
| +
|
| +void TestManagePasswordsBubbleUIController::NeverSavePassword() {
|
| + never_saved_password_ = true;
|
| +}
|
|
|