Index: chrome/browser/instant/instant_loader.cc |
diff --git a/chrome/browser/instant/instant_loader.cc b/chrome/browser/instant/instant_loader.cc |
index 3f1725e60e4db66be1d8d9b2658aacc464c9ad87..35cf01d5d3c7b79602118e3270a901d18e2e6e8d 100644 |
--- a/chrome/browser/instant/instant_loader.cc |
+++ b/chrome/browser/instant/instant_loader.cc |
@@ -1024,7 +1024,7 @@ void InstantLoader::LoadInstantURL(TabContentsWrapper* tab_contents, |
// correctly. |
// TODO(sky): having to use a replaceable url is a bit of a hack here. |
GURL instant_url(template_url->instant_url()->ReplaceSearchTerms( |
- *template_url, string16(), -1, string16())); |
+ tab_contents->profile(), *template_url, string16(), -1, string16())); |
CommandLine* cl = CommandLine::ForCurrentProcess(); |
if (cl->HasSwitch(switches::kInstantURL)) |
instant_url = GURL(cl->GetSwitchValueASCII(switches::kInstantURL)); |