Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: chrome/ext/background.js

Issue 6528746257383424: Issue 1708 - Integrate first-run page changes in Chrome/Opera/Safari (Closed)
Patch Set: Rebased again Created Dec. 19, 2014, 3:45 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/ext/background.js
===================================================================
--- a/chrome/ext/background.js
+++ b/chrome/ext/background.js
@@ -51,16 +51,21 @@
chrome.tabs.update(this._id, {selected: true});
},
sendMessage: function(message, responseCallback)
{
chrome.tabs.sendMessage(this._id, message, responseCallback);
}
};
+ ext._getPage = function(id)
+ {
+ return new Page({id: parseInt(id, 10)});
+ };
+
ext.pages = {
open: function(url, callback)
{
if (callback)
{
chrome.tabs.create({url: url}, function(openedTab)
{
var onUpdated = function(tabId, changeInfo, tab)

Powered by Google App Engine
This is Rietveld