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: Addressed comment Created Dec. 19, 2014, 7:37 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
« .hgsubstate ('K') | « background.js ('k') | ext/background.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« .hgsubstate ('K') | « background.js ('k') | ext/background.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld