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

Unified Diff: chrome/browser/autocomplete/search_provider.h

Issue 10021008: Reland r131019: Move most TemplateURL data members to a new struct, TemplateURLData. This allows us… (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/autocomplete/search_provider.h
===================================================================
--- chrome/browser/autocomplete/search_provider.h (revision 131175)
+++ chrome/browser/autocomplete/search_provider.h (working copy)
@@ -90,7 +90,12 @@
// . The keyword provider. This is used if the user has typed in a keyword.
class Providers {
public:
- Providers() : default_provider_(NULL), keyword_provider_(NULL) {}
+ Providers()
+ : cached_default_provider_(TemplateURLData()),
+ cached_keyword_provider_(TemplateURLData()),
+ default_provider_(NULL),
+ keyword_provider_(NULL) {
+ }
// Returns true if the specified providers match the two providers managed
// by this class.
« no previous file with comments | « chrome/browser/autocomplete/keyword_provider_unittest.cc ('k') | chrome/browser/autocomplete/search_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698