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

Unified Diff: chrome/browser/instant/instant_loader_manager.cc

Issue 6990015: Preload Instant search when omnibox is focused. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Rebaseline Created 9 years, 7 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 | « chrome/browser/instant/instant_loader_manager.h ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/instant/instant_loader_manager.cc
diff --git a/chrome/browser/instant/instant_loader_manager.cc b/chrome/browser/instant/instant_loader_manager.cc
index 76ed94b4296be390cb1d2415e389692d16040a08..a56490767f6832ac5c3aa1d4ee7fbd63d69c4dc7 100644
--- a/chrome/browser/instant/instant_loader_manager.cc
+++ b/chrome/browser/instant/instant_loader_manager.cc
@@ -141,14 +141,14 @@ void InstantLoaderManager::RemoveLoaderFromInstant(InstantLoader* loader) {
instant_loaders_.erase(i);
}
+InstantLoader* InstantLoaderManager::GetInstantLoader(TemplateURLID id) {
+ Loaders::iterator i = instant_loaders_.find(id);
+ return i == instant_loaders_.end() ? CreateLoader(id) : i->second;
+}
+
InstantLoader* InstantLoaderManager::CreateLoader(TemplateURLID id) {
InstantLoader* loader = new InstantLoader(loader_delegate_, id);
if (id)
instant_loaders_[id] = loader;
return loader;
}
-
-InstantLoader* InstantLoaderManager::GetInstantLoader(TemplateURLID id) {
- Loaders::iterator i = instant_loaders_.find(id);
- return i == instant_loaders_.end() ? CreateLoader(id) : i->second;
-}
« no previous file with comments | « chrome/browser/instant/instant_loader_manager.h ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698