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

Unified Diff: chrome/browser/resources/options/chromeos/keyboard_overlay.js

Issue 577843003: Revert of Add public API generation with cr.makePublic() and handle it in compiler pass (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@H_options_errors_3
Patch Set: Created 6 years, 3 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/options/chromeos/keyboard_overlay.js
diff --git a/chrome/browser/resources/options/chromeos/keyboard_overlay.js b/chrome/browser/resources/options/chromeos/keyboard_overlay.js
index 5e6f2e01513e97533dae39188a50ac934e5ebf8d..74680dbf7d6889452fc8a2e38c389276ad4f748b 100644
--- a/chrome/browser/resources/options/chromeos/keyboard_overlay.js
+++ b/chrome/browser/resources/options/chromeos/keyboard_overlay.js
@@ -161,10 +161,15 @@
};
// Forward public APIs to private implementations.
- cr.makePublic(KeyboardOverlay, [
+ [
'showCapsLockOptions',
'showDiamondKeyOptions',
- ]);
+ ].forEach(function(name) {
+ KeyboardOverlay[name] = function() {
+ var instance = KeyboardOverlay.getInstance();
+ return instance[name + '_'].apply(instance, arguments);
+ };
+ });
// Export
return {

Powered by Google App Engine
This is Rietveld 408576698