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

Unified Diff: chrome/browser/resources/chromeos/login/indeterminate-progress.js

Issue 1179323005: Polymer upgraded to 1.0 in login flow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@polymer_pre_migration
Patch Set: Comments addressed. Created 5 years, 6 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/chromeos/login/indeterminate-progress.js
diff --git a/chrome/browser/resources/chromeos/login/indeterminate-progress.js b/chrome/browser/resources/chromeos/login/indeterminate-progress.js
deleted file mode 100644
index 2a59b2715e9b0ce80dfa68cc1ffb9c6a84e359c6..0000000000000000000000000000000000000000
--- a/chrome/browser/resources/chromeos/login/indeterminate-progress.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright (c) 2014 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.
-
-Polymer('indeterminate-progress', {
- runnerPortion: 20,
- rate: 1,
- runnerColor: '#0f9d58',
- backgroundColor: '#c8c8c8',
-
- progress: 0,
- min: Math.min,
- max: Math.max,
-
- computed: {
- scaledProgress: '((100 + runnerPortion) * progress / 100) - runnerPortion',
- primaryProgress: 'max(0, scaledProgress)',
- secondaryProgress: 'min(scaledProgress + runnerPortion, 100)',
- timeout: '20 / min(max(rate, 1), 10)'
- },
-
- ready: function() {
- },
-
- doProgress: function() {
- if (this.progress + 1 > 100)
- this.progress = 0;
- else
- ++this.progress;
- this.async(this.doProgress, null, this.timeout);
- }
-});

Powered by Google App Engine
This is Rietveld 408576698