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

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

Issue 2912473004: [MD settings] rename lastRoutChangeWasPopstate var (Closed)
Patch Set: name change Created 3 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/resources/settings/settings_page/main_page_behavior.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/route.js
diff --git a/chrome/browser/resources/settings/route.js b/chrome/browser/resources/settings/route.js
index 502715254260b4b80a111ba69bde0127d2002afc..5c4cfff14da826d83ab9607231e0adf703405ad2 100644
--- a/chrome/browser/resources/settings/route.js
+++ b/chrome/browser/resources/settings/route.js
@@ -308,7 +308,7 @@ cr.define('settings', function() {
var currentQueryParameters = new URLSearchParams();
/** @private {boolean} */
- var lastRouteChangeWasPopstate_ = false;
+ var lastRouteChangeWasPopstate = false;
/** @private */
var initializeRouteFromUrlCalled = false;
@@ -332,7 +332,7 @@ cr.define('settings', function() {
function resetRouteForTesting() {
initializeRouteFromUrlCalled = false;
- lastRouteChangeWasPopstate_ = false;
+ lastRouteChangeWasPopstate = false;
currentRoute = Route.BASIC;
currentQueryParameters = new URLSearchParams();
}
@@ -347,7 +347,7 @@ cr.define('settings', function() {
var oldRoute = currentRoute;
currentRoute = route;
currentQueryParameters = queryParameters;
- lastRouteChangeWasPopstate_ = isPopstate;
+ lastRouteChangeWasPopstate = isPopstate;
routeObservers.forEach(function(observer) {
observer.currentRouteChanged(currentRoute, oldRoute);
});
@@ -362,8 +362,8 @@ cr.define('settings', function() {
};
/** @return {boolean} */
- var lastRouteChangeWasPopstate = function() {
- return lastRouteChangeWasPopstate_;
+ var wasLastRouteChangePopstate = function() {
dpapad 2017/05/27 00:25:56 My understanding is that you are forced to rename
dschuyler 2017/05/27 01:16:36 Done.
+ return lastRouteChangeWasPopstate;
};
dschuyler 2017/05/26 23:29:59 I'm tempted to remove this function entirely and a
dpapad 2017/05/27 00:25:56 It seems that this would break the intention of th
dschuyler 2017/05/27 01:16:36 Acknowledged.
/**
@@ -429,7 +429,7 @@ cr.define('settings', function() {
resetRouteForTesting: resetRouteForTesting,
getCurrentRoute: getCurrentRoute,
getQueryParameters: getQueryParameters,
- lastRouteChangeWasPopstate: lastRouteChangeWasPopstate,
+ wasLastRouteChangePopstate: wasLastRouteChangePopstate,
navigateTo: navigateTo,
navigateToPreviousRoute: navigateToPreviousRoute,
};
« no previous file with comments | « no previous file | chrome/browser/resources/settings/settings_page/main_page_behavior.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698