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

Side by Side Diff: chrome/browser/resources/uber/uber_page_manager_observer.js

Issue 2600683002: Run tools/clang-format-js on some of chrome/browser/resources/ (Closed)
Patch Set: event_handler.js Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 cr.define('uber', function() { 5 cr.define('uber', function() {
6 var PageManager = cr.ui.pageManager.PageManager; 6 var PageManager = cr.ui.pageManager.PageManager;
7 7
8 /** 8 /**
9 * A PageManager observer that updates the uber page. 9 * A PageManager observer that updates the uber page.
10 * @constructor 10 * @constructor
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 * @param {boolean} replace If true, allow no history events to be created. 46 * @param {boolean} replace If true, allow no history events to be created.
47 * @override 47 * @override
48 */ 48 */
49 updateHistory: function(path, replace) { 49 updateHistory: function(path, replace) {
50 var historyFunction = replace ? uber.replaceState : uber.pushState; 50 var historyFunction = replace ? uber.replaceState : uber.pushState;
51 historyFunction({}, path); 51 historyFunction({}, path);
52 }, 52 },
53 }; 53 };
54 54
55 // Export 55 // Export
56 return { 56 return {PageManagerObserver: PageManagerObserver};
57 PageManagerObserver: PageManagerObserver
58 };
59 }); 57 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698