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

Unified Diff: chrome/browser/search_engines/search_provider_install_data.cc

Issue 10033017: More misc. cleanups to minimize future refactoring diffs. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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_engines/search_provider_install_data.cc
===================================================================
--- chrome/browser/search_engines/search_provider_install_data.cc (revision 131375)
+++ chrome/browser/search_engines/search_provider_install_data.cc (working copy)
@@ -129,8 +129,7 @@
const content::NotificationDetails& details) {
if (type == chrome::NOTIFICATION_GOOGLE_URL_UPDATED) {
BrowserThread::PostTask(BrowserThread::IO, FROM_HERE,
- base::Bind(&GoogleURLChangeNotifier::OnChange,
- change_notifier_.get(),
+ base::Bind(&GoogleURLChangeNotifier::OnChange, change_notifier_.get(),
UIThreadSearchTermsData().GoogleBaseURLValue()));
} else {
// This must be the death notification.
@@ -145,9 +144,8 @@
const TemplateURL* template_url,
const SearchTermsData& search_terms_data) {
DCHECK(requested_origin == requested_origin.GetOrigin());
- return template_url && requested_origin ==
sky 2012/04/10 16:16:22 How come it's safe to remove the template_url chec
Peter Kasting 2012/04/10 17:53:44 I wrote comments in patch set 1 for this and a few
- TemplateURLService::GenerateSearchURLUsingTermsData(
- template_url,
+ return requested_origin ==
+ TemplateURLService::GenerateSearchURLUsingTermsData(template_url,
search_terms_data).GetOrigin();
}

Powered by Google App Engine
This is Rietveld 408576698