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

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

Issue 1503333003: Settings People Rewrite: Make Sync/Sign-in naming consistent to People. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge upstream changes Created 5 years 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/signin_page/signin_page.js
diff --git a/chrome/browser/resources/settings/signin_page/signin_page.js b/chrome/browser/resources/settings/signin_page/signin_page.js
deleted file mode 100644
index 5be0122517c5c7e81e391e804a46048207c42a60..0000000000000000000000000000000000000000
--- a/chrome/browser/resources/settings/signin_page/signin_page.js
+++ /dev/null
@@ -1,108 +0,0 @@
-// 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.
-
-/**
- * @fileoverview
- * 'settings-signin-page' is the settings page containing sign-in settings.
- *
- * Example:
- *
- * <iron-animated-pages>
- * <settings-signin-page prefs="{{prefs}}"></settings-signin-page>
- * ... other pages ...
- * </iron-animated-pages>
- *
- * @group Chrome Settings Elements
- * @element settings-signin-page
- */
-Polymer({
- is: 'settings-signin-page',
-
- behaviors: [
- I18nBehavior,
- ],
-
- properties: {
- /**
- * The current active route.
- */
- currentRoute: {
- type: Object,
- notify: true,
- },
-
- /**
- * The current sync status, supplied by settings.SyncPrivateApi.
- * @type {?settings.SyncPrivateApi.SyncStatus}
- */
- syncStatus: Object,
- },
-
- created: function() {
- settings.SyncPrivateApi.getSyncStatus(
- this.handleSyncStatusFetched_.bind(this));
- },
-
- /**
- * Handler for when the sync state is pushed from settings.SyncPrivateApi.
- * @private
- */
- handleSyncStatusFetched_: function(syncStatus) {
- this.syncStatus = syncStatus;
-
- // TODO(tommycli): Remove once we figure out how to refactor the sync
- // code to not include HTML in the status messages.
- this.$.syncStatusText.innerHTML = syncStatus.statusText;
- },
-
- /** @private */
- onActionLinkTap_: function() {
- settings.SyncPrivateApi.showSetupUI();
- },
-
- /** @private */
- onSigninTap_: function() {
- settings.SyncPrivateApi.startSignIn();
- },
-
- /** @private */
- onDisconnectTap_: function() {
- this.$.disconnectDialog.open();
- },
-
- /** @private */
- onDisconnectConfirm_: function() {
- var deleteProfile = this.$.deleteProfile && this.$.deleteProfile.checked;
- settings.SyncPrivateApi.disconnect(deleteProfile);
-
- // Dialog automatically closed because button has dialog-confirm attribute.
- },
-
- /** @private */
- onSyncTap_: function() {
- this.$.pages.setSubpageChain(['sync']);
- },
-
- /** @private */
- onManageOtherPeople_: function() {
- settings.SyncPrivateApi.manageOtherPeople();
- },
-
- /**
- * @private
- * @return {boolean}
- */
- isStatusTextSet_: function(syncStatus) {
- return syncStatus && syncStatus.statusText.length > 0;
- },
-
- /**
- * @private
- * @return {boolean}
- */
- isAdvancedSyncSettingsVisible_: function(syncStatus) {
- return syncStatus && syncStatus.signedIn && !syncStatus.managed &&
- syncStatus.syncSystemEnabled;
- },
-});

Powered by Google App Engine
This is Rietveld 408576698