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

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

Issue 2154213008: Settings Router Refactor: Clean up Quick Unlock (and a few misc fixes) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0211-settings-router-impl-part-3-navigateTo
Patch Set: change test Created 4 years, 5 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/quick_unlock_routing_behavior.js
diff --git a/chrome/browser/resources/settings/people_page/quick_unlock_routing_behavior.js b/chrome/browser/resources/settings/people_page/quick_unlock_routing_behavior.js
deleted file mode 100644
index 6c31d5a7e8aa2d1b6056d074734cc085a69ec86a..0000000000000000000000000000000000000000
--- a/chrome/browser/resources/settings/people_page/quick_unlock_routing_behavior.js
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright 2016 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.
-
-/** @enum {string} */
-var QuickUnlockScreen = {
- AUTHENTICATE: 'quick-unlock-authenticate',
- CHOOSE_METHOD: 'quick-unlock-choose-method',
- SETUP_PIN: 'quick-unlock-setup-pin'
-};
-
-/** @polymerBehavior */
-var QuickUnlockRoutingBehavior = {
- properties: {
- /** @type {!settings.Route} */
- currentRoute: {
- type: Object,
- notify: true,
- }
- },
-
- /**
- * Returns true if the given screen is active.
- * @param {!QuickUnlockScreen} screen
- * @return {!boolean}
- */
- isScreenActive: function(screen) {
- var subpage = this.currentRoute.subpage;
- return subpage.length > 0 && subpage[subpage.length - 1] == screen;
- },
-};

Powered by Google App Engine
This is Rietveld 408576698