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

Side by Side Diff: chrome/browser/search_engines/template_url_model.cc

Issue 5730004: Rename ExtensionsService to ExtensionService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 10 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/search_engines/template_url_model.h" 5 #include "chrome/browser/search_engines/template_url_model.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/environment.h" 9 #include "base/environment.h"
10 #include "base/stl_util-inl.h" 10 #include "base/stl_util-inl.h"
11 #include "base/string_number_conversions.h" 11 #include "base/string_number_conversions.h"
12 #include "base/string_split.h" 12 #include "base/string_split.h"
13 #include "base/utf_string_conversions.h" 13 #include "base/utf_string_conversions.h"
14 #include "chrome/browser/extensions/extensions_service.h" 14 #include "chrome/browser/extensions/extension_service.h"
15 #include "chrome/browser/google/google_url_tracker.h" 15 #include "chrome/browser/google/google_url_tracker.h"
16 #include "chrome/browser/history/history.h" 16 #include "chrome/browser/history/history.h"
17 #include "chrome/browser/history/history_notifications.h" 17 #include "chrome/browser/history/history_notifications.h"
18 #include "chrome/browser/net/url_fixer_upper.h" 18 #include "chrome/browser/net/url_fixer_upper.h"
19 #include "chrome/browser/prefs/pref_service.h" 19 #include "chrome/browser/prefs/pref_service.h"
20 #include "chrome/browser/prefs/pref_set_observer.h" 20 #include "chrome/browser/prefs/pref_set_observer.h"
21 #include "chrome/browser/profiles/profile.h" 21 #include "chrome/browser/profiles/profile.h"
22 #include "chrome/browser/rlz/rlz.h" 22 #include "chrome/browser/rlz/rlz.h"
23 #include "chrome/browser/search_engines/search_host_to_urls_map.h" 23 #include "chrome/browser/search_engines/search_host_to_urls_map.h"
24 #include "chrome/browser/search_engines/search_terms_data.h" 24 #include "chrome/browser/search_engines/search_terms_data.h"
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 loaded_ = true; 734 loaded_ = true;
735 } 735 }
736 736
737 void TemplateURLModel::NotifyLoaded() { 737 void TemplateURLModel::NotifyLoaded() {
738 NotificationService::current()->Notify( 738 NotificationService::current()->Notify(
739 NotificationType::TEMPLATE_URL_MODEL_LOADED, 739 NotificationType::TEMPLATE_URL_MODEL_LOADED,
740 Source<TemplateURLModel>(this), 740 Source<TemplateURLModel>(this),
741 NotificationService::NoDetails()); 741 NotificationService::NoDetails());
742 742
743 for (size_t i = 0; i < pending_extension_ids_.size(); ++i) { 743 for (size_t i = 0; i < pending_extension_ids_.size(); ++i) {
744 const Extension* extension = profile_->GetExtensionsService()-> 744 const Extension* extension = profile_->GetExtensionService()->
745 GetExtensionById(pending_extension_ids_[i], true); 745 GetExtensionById(pending_extension_ids_[i], true);
746 if (extension) 746 if (extension)
747 RegisterExtensionKeyword(extension); 747 RegisterExtensionKeyword(extension);
748 } 748 }
749 pending_extension_ids_.clear(); 749 pending_extension_ids_.clear();
750 } 750 }
751 751
752 void TemplateURLModel::SaveDefaultSearchProviderToPrefs( 752 void TemplateURLModel::SaveDefaultSearchProviderToPrefs(
753 const TemplateURL* t_url) { 753 const TemplateURL* t_url) {
754 PrefService* prefs = GetPrefs(); 754 PrefService* prefs = GetPrefs();
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
1251 delete template_url; 1251 delete template_url;
1252 } 1252 }
1253 1253
1254 void TemplateURLModel::NotifyObservers() { 1254 void TemplateURLModel::NotifyObservers() {
1255 if (!loaded_) 1255 if (!loaded_)
1256 return; 1256 return;
1257 1257
1258 FOR_EACH_OBSERVER(TemplateURLModelObserver, model_observers_, 1258 FOR_EACH_OBSERVER(TemplateURLModelObserver, model_observers_,
1259 OnTemplateURLModelChanged()); 1259 OnTemplateURLModelChanged());
1260 } 1260 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/site_instance.cc ('k') | chrome/browser/sessions/session_restore.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698