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

Unified Diff: chrome/common/extensions/docs/examples/api/webNavigation/basic/background.js

Issue 10692097: Introduce webNavigation.onTabReplaced event that is fired when a tab from instant or prerender repl… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 8 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/common/extensions/docs/examples/api/webNavigation/basic/background.js
diff --git a/chrome/common/extensions/docs/examples/api/webNavigation/basic/background.js b/chrome/common/extensions/docs/examples/api/webNavigation/basic/background.js
index 09e3699d855897598718cf401b18221094f7519e..66a4e4b89640ff5c1c45bc5a8a2ec4e807a0b018 100644
--- a/chrome/common/extensions/docs/examples/api/webNavigation/basic/background.js
+++ b/chrome/common/extensions/docs/examples/api/webNavigation/basic/background.js
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 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.
@@ -10,7 +10,7 @@ var nav = new NavigationCollector();
var eventList = ['onBeforeNavigate', 'onCreatedNavigationTarget',
'onCommitted', 'onCompleted', 'onDOMContentLoaded',
- 'onErrorOccurred', 'onReferenceFragmentUpdated'];
+ 'onErrorOccurred', 'onReferenceFragmentUpdated', 'onTabReplaced'];
eventList.forEach(function(e) {
chrome.webNavigation[e].addListener(function(data) {

Powered by Google App Engine
This is Rietveld 408576698