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

Side by Side Diff: lib/survey.js

Issue 8554013: Renamed necessary components for ABP integration (Closed)
Patch Set: Created Oct. 10, 2012, 1:59 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/rules.js ('k') | lib/typoAppIntegration.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* This Source Code Form is subject to the terms of the Mozilla Public 1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this file, 2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 * You can obtain one at http://mozilla.org/MPL/2.0/. */ 3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
4 4
5 Cu.import("resource://gre/modules/Services.jsm"); 5 Cu.import("resource://gre/modules/Services.jsm");
6 6
7 let {Prefs} = require("prefs"); 7 let {Prefs} = require("prefs");
8 8
9 let surveyLang = null; 9 let surveyLang = null;
10 let surveyUrl = null; //"http://urlfixer.org/usersurvey/..."; 10 let surveyUrl = null; //"http://urlfixer.org/usersurvey/...";
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 panel.openPopup(anchor, "after_start", 0, 0, false, true); 86 panel.openPopup(anchor, "after_start", 0, 0, false, true);
87 }, false); 87 }, false);
88 request.send(null); 88 request.send(null);
89 } 89 }
90 90
91 function openSurvey() 91 function openSurvey()
92 { 92 {
93 let window = Services.wm.getMostRecentWindow("navigator:browser"); 93 let window = Services.wm.getMostRecentWindow("navigator:browser");
94 if (window) 94 if (window)
95 { 95 {
96 let browser = require("appIntegration").getBrowser(window); 96 let browser = require("typoAppIntegration").getBrowser(window);
97 browser.loadOneTab(surveyUrl + "&lang=" + surveyLang, { 97 browser.loadOneTab(surveyUrl + "&lang=" + surveyLang, {
98 referrerURI: Services.io.newURI("http://url.fixer/", null, null), 98 referrerURI: Services.io.newURI("http://url.fixer/", null, null),
99 inBackground: false 99 inBackground: false
100 }); 100 });
101 } 101 }
102 } 102 }
OLDNEW
« no previous file with comments | « lib/rules.js ('k') | lib/typoAppIntegration.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld