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

Unified Diff: chrome/browser/importer/profile_import_process_messages.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/importer/profile_import_process_messages.h
===================================================================
--- chrome/browser/importer/profile_import_process_messages.h (revision 132905)
+++ chrome/browser/importer/profile_import_process_messages.h (working copy)
@@ -261,7 +261,10 @@
TemplateURLData data;
if (!ReadParam(m, iter, &data))
return false;
- *p = new TemplateURL(data);
+ // Since we don't have access to a Profile*, just supply NULL. The caller
+ // can create a new TemplateURL or modify this one (e.g. via
+ // TemplateURLService::AddAndSetProfile()) to correct this later.
+ *p = new TemplateURL(NULL, data);
return true;
}
static void Log(const param_type& p, std::string* l) {

Powered by Google App Engine
This is Rietveld 408576698