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

Unified Diff: chrome/browser/search_engines/template_url_service.h

Issue 10173001: Add a Profile* member to TemplateURL. This makes some invocations of ReplaceSearchTerms() a bit le… (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/template_url_service.h
===================================================================
--- chrome/browser/search_engines/template_url_service.h (revision 132909)
+++ chrome/browser/search_engines/template_url_service.h (working copy)
@@ -143,6 +143,7 @@
// Like Add(), but overwrites the |template_url|'s values with the provided
// ones.
+ void AddAndSetProfile(TemplateURL* template_url, Profile* profile);
void AddWithOverrides(const TemplateURL* template_url,
const string16& short_name,
const string16& keyword,
@@ -306,6 +307,7 @@
// data is bad for some reason, an ACTION_DELETE change is added and the
// function returns NULL.
static TemplateURL* CreateTemplateURLFromTemplateURLAndSyncData(
+ Profile* profile,
const TemplateURL* existing_turl,
const SyncData& sync_data,
SyncChangeList* change_list);

Powered by Google App Engine
This is Rietveld 408576698