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

Unified Diff: chrome/browser/ui/webui/settings/passwords_handler.h

Issue 1457713007: Update the "Passwords and Forms" section so that they can be toggled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/webui/settings/passwords_handler.h
diff --git a/chrome/browser/ui/webui/settings/passwords_handler.h b/chrome/browser/ui/webui/settings/passwords_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..335cd3697a5c728535807e2e975bfa6bc47a8bac
--- /dev/null
+++ b/chrome/browser/ui/webui/settings/passwords_handler.h
@@ -0,0 +1,38 @@
+// Copyright 2015 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.
+
+#ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_PASSWORDS_HANDLER_H_
+#define CHROME_BROWSER_UI_WEBUI_SETTINGS_PASSWORDS_HANDLER_H_
+
+#include "base/macros.h"
+#include "chrome/browser/ui/webui/settings/md_settings_ui.h"
+
+namespace content {
+class WebUI;
+}
+
+class Profile;
+
+namespace settings {
+
+class PasswordsHandler : public SettingsPageUIHandler {
+ public:
+ explicit PasswordsHandler(content::WebUI* webui);
+ ~PasswordsHandler() override;
+
+ // SettingsPageUIHandler:
+ void RegisterMessages() override;
+
+ private:
+ // Sets whether chrome should offer to save passwords or not.
+ void HandleSetPaswordSaving(const base::ListValue* args);
+
+ Profile* profile_; // Weak pointer.
+
+ DISALLOW_COPY_AND_ASSIGN(PasswordsHandler);
+};
+
+} // namespace settings
+
+#endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_PASSWORDS_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698