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; |
-} |