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

Unified Diff: chrome/ext/background.js

Issue 29340749: Issue 3816 - Add hidden toggle for the new options page (Closed)
Patch Set: Created April 22, 2016, 9:32 a.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 | « no previous file | dependencies » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/ext/background.js
diff --git a/chrome/ext/background.js b/chrome/ext/background.js
index 092908d6b271e18c2f7ae49c3b07865bb711e2c6..5ebb6f7360b162ee1c2dd5e7d3a941d0e31afb0d 100644
--- a/chrome/ext/background.js
+++ b/chrome/ext/background.js
@@ -557,11 +557,13 @@
/* Options */
- ext.showOptions = function(callback)
+ ext.showOptions = function(newOptionsPage, callback)
{
chrome.windows.getLastFocused(function(win)
{
- var optionsUrl = chrome.extension.getURL("options.html");
+ var optionsUrl = chrome.extension.getURL(
+ newOptionsPage ? "new-options.html" : "options.html"
+ );
var queryInfo = {url: optionsUrl};
// extension pages can't be accessed in incognito windows. In order to
« no previous file with comments | « no previous file | dependencies » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld