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

Unified Diff: chrome/browser/search/instant_service.cc

Issue 13375003: Fixing iframe jank in the local omnibox popup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removing sites, too. Created 7 years, 8 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
Index: chrome/browser/search/instant_service.cc
diff --git a/chrome/browser/search/instant_service.cc b/chrome/browser/search/instant_service.cc
index d0f0f313d60bec342bb7b5e1af92284dcc86cbfb..7e21c158ce191042ed05750e70e6d3824d6f4508 100644
--- a/chrome/browser/search/instant_service.cc
+++ b/chrome/browser/search/instant_service.cc
@@ -11,6 +11,7 @@
#include "chrome/browser/search/instant_service_factory.h"
#include "chrome/browser/search/local_ntp_source.h"
#include "chrome/browser/search/local_omnibox_popup_source.h"
+#include "chrome/browser/search/suggestion_source.h"
#include "chrome/browser/ui/webui/favicon_source.h"
#include "chrome/browser/ui/webui/ntp/thumbnail_source.h"
#include "chrome/browser/ui/webui/theme_source.h"
@@ -54,6 +55,7 @@ InstantService::InstantService(Profile* profile)
profile, FaviconSource::FAVICON));
content::URLDataSource::Add(profile, new LocalOmniboxPopupSource());
content::URLDataSource::Add(profile, new LocalNtpSource());
+ content::URLDataSource::Add(profile, new SuggestionSource());
}
InstantService::~InstantService() {
@@ -105,14 +107,14 @@ bool InstantService::IsInstantPath(const GURL& url) {
return base::StringToInt(path, &dummy);
}
-void InstantService::AddInstantProcess(int process_id) {
+void InstantService::AddInstantProcess(int process_id, const GURL& site_url) {
process_ids_.insert(process_id);
if (instant_io_context_) {
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
base::Bind(&InstantIOContext::AddInstantProcessOnIO,
- instant_io_context_, process_id));
+ instant_io_context_, process_id, site_url));
}
}

Powered by Google App Engine
This is Rietveld 408576698