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

Unified Diff: chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js

Issue 2733273002: MD Settings: add extension-control indicator for autofill and password. (Closed)
Patch Set: add todo comments Created 3 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/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js
diff --git a/chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js b/chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js
index b5cfb554c728540d62ab4dbf1de87741856dfdb8..a4abcf059a98ad173883bc1058776616195a35f8 100644
--- a/chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js
+++ b/chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js
@@ -46,5 +46,23 @@ Polymer({
settings.navigateTo(settings.Route.MANAGE_PASSWORDS);
}
},
+
+ /** @private */
+ onExtensionDisable_: function() {
+ // TODO(dbeam): this is a pretty huge bummer. It means there are things
+ // (inputs) that our prefs system is not observing. And that changes from
+ // other sources (i.e. disabling/enabling an extension from
+ // chrome://extensions or from the omnibox directly) will not update
+ // |this.prefs.proxy| directly (nor the UI). We should fix this eventually.
+ this.fire('refresh-pref', 'proxy');
dschuyler 2017/03/07 22:22:48 It looks like this was copied from system_page.js
Dan Beam 2017/03/07 22:43:20 no, as far as I can tell this is a completely unre
scottchen 2017/03/08 00:40:21 Removed this and UI still updates, so it looks lik
+ },
+
+ /** @private */
Dan Beam 2017/03/07 22:43:20 @param
scottchen 2017/03/08 00:40:21 Done.
+ secClass_: function(condition) {
Dan Beam 2017/03/07 22:43:20 condition should be named less generically
scottchen 2017/03/08 00:40:21 Done.
+ // TODO(scottchen): Having to do this is kind of annoying, but it'll be a
+ // temporary patch. As we have plans to move the toggle completely into the
+ // subpages themselves, this code *should* be eliminated soon.
scottchen 2017/03/07 21:39:34 See "remove toggles from the top-level and add ON/
+ return condition ? 'secondary-action' : '';
+ },
});
})();

Powered by Google App Engine
This is Rietveld 408576698