Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3357)

Unified Diff: chrome/installer/setup/eula/oem.js

Issue 7309008: Change the system-level EULA dialog to not use GET parameters with res:// urls. Instead use the d... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/installer/setup/setup_main.cc » ('j') | chrome/installer/util/html_dialog.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/setup/eula/oem.js
===================================================================
--- chrome/installer/setup/eula/oem.js (revision 91469)
+++ chrome/installer/setup/eula/oem.js (working copy)
@@ -1,8 +1,8 @@
function setInnerFrame() {
- var regex = new RegExp("\\?innerframe=\"?([^&#\"]*)\"?");
- var results = regex.exec(window.location.href);
- if(results && results[1])
- document.getElementById('ifr').src = results[1];
+ if (window.dialogArguments) {
+ var inner_frame = window.dialogArguments;
+ document.getElementById('ifr').src = inner_frame;
grt (UTC plus 2) 2011/07/04 18:42:04 why not something like: if (inner_frame && inner_f
robertshield 2011/07/04 19:12:31 Good idea, the empty string evaluates to false, so
+ }
}
function checkAccept(f) {
« no previous file with comments | « no previous file | chrome/installer/setup/setup_main.cc » ('j') | chrome/installer/util/html_dialog.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698