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

Unified Diff: chrome/browser/resources/settings/people_page/sync_private_api.js

Issue 1900913002: Settings People Revamp: Split Profile Info out into its own handler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/people_page/sync_private_api.js
diff --git a/chrome/browser/resources/settings/people_page/sync_private_api.js b/chrome/browser/resources/settings/people_page/sync_private_api.js
index 17e4752163df980edc2c663600979e8d4fabe48d..10aa3001c9a6cc3c5d6cd3d1aabd4a908ea54249 100644
--- a/chrome/browser/resources/settings/people_page/sync_private_api.js
+++ b/chrome/browser/resources/settings/people_page/sync_private_api.js
@@ -90,9 +90,6 @@ cr.define('settings', function() {
*/
function SyncPrivateApi() {}
- /** @private {?function(!string, !string)} */
- SyncPrivateApi.getProfileInfoCallback_ = null;
-
/** @private {?function(settings.SyncPrefs)} */
SyncPrivateApi.syncPrefsCallback_ = null;
@@ -100,25 +97,6 @@ cr.define('settings', function() {
SyncPrivateApi.setPageStatusCallback_ = null;
/**
- * Called from JavaScript. Gets the current profile name and icon.
- * @param {?function(!string, !string)} callback
- */
- SyncPrivateApi.getProfileInfo = function(callback) {
- SyncPrivateApi.getProfileInfoCallback_ = callback;
- chrome.send('getProfileInfo');
- };
-
- /**
- * Called from C++ as a response to getIconsAndNames.
- * @param {!string} name The current profile name.
- * @param {!string} iconUrl The current profile icon's URL. Can be a data URL.
- */
- SyncPrivateApi.receiveProfileInfo = function(name, iconUrl) {
- if (SyncPrivateApi.getProfileInfoCallback_)
- SyncPrivateApi.getProfileInfoCallback_(name, iconUrl);
- };
-
- /**
* Starts the signin process for the user. Does nothing if the user is
* already signed in.
* @private

Powered by Google App Engine
This is Rietveld 408576698