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: Created Dec. 17, 2014, 10:40 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
« no previous file with comments | « .hgsubstate ('k') | metadata.common » ('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
@@ -41,16 +41,20 @@
var frames = framesOfTabs[this._id];
if (frames)
{
var frame = frames[0];
if (frame)
return frame.url;
}
},
+ equals: function(page)
+ {
+ return this._id == page._id;
+ },
activate: function()
{
chrome.tabs.update(this._id, {selected: true});
},
sendMessage: function(message, responseCallback)
{
chrome.tabs.sendMessage(this._id, message, responseCallback);
}
« no previous file with comments | « .hgsubstate ('k') | metadata.common » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld