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

Unified Diff: chrome/browser/resources/settings/appearance_page/appearance_browser_proxy.js

Issue 2487423002: MD Settings: add tests for mischievous default zoom handling (Closed)
Patch Set: closure Created 4 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
« no previous file with comments | « no previous file | chrome/browser/resources/settings/appearance_page/appearance_page.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/appearance_page/appearance_browser_proxy.js
diff --git a/chrome/browser/resources/settings/appearance_page/appearance_browser_proxy.js b/chrome/browser/resources/settings/appearance_page/appearance_browser_proxy.js
index e9cd6ec161be1bdf18aaf8a5e3c7591b72d16779..5f72e2798100c9328a28164bd87f431f2da776f8 100644
--- a/chrome/browser/resources/settings/appearance_page/appearance_browser_proxy.js
+++ b/chrome/browser/resources/settings/appearance_page/appearance_browser_proxy.js
@@ -7,6 +7,9 @@ cr.define('settings', function() {
function AppearanceBrowserProxy() {}
AppearanceBrowserProxy.prototype = {
+ /** @return {!Promise<number>} */
+ getDefaultZoom: assertNotReached,
+
/**
* @param {string} themeId
* @return {!Promise<!chrome.management.ExtensionInfo>} Theme info.
@@ -37,6 +40,13 @@ cr.define('settings', function() {
AppearanceBrowserProxyImpl.prototype = {
/** @override */
+ getDefaultZoom: function() {
+ return new Promise(function(resolve) {
+ chrome.settingsPrivate.getDefaultZoom(resolve);
+ });
+ },
+
+ /** @override */
getThemeInfo: function(themeId) {
return new Promise(function(resolve) {
chrome.management.get(themeId, resolve);
« no previous file with comments | « no previous file | chrome/browser/resources/settings/appearance_page/appearance_page.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698