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

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

Issue 7396024: Adding a sync_guid field to TemplateURL. Adding appropriate database migration changes and tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Lint fix. Created 9 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/search_engines/template_url_service_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search_engines/template_url.h
===================================================================
--- chrome/browser/search_engines/template_url.h (revision 92870)
+++ chrome/browser/search_engines/template_url.h (working copy)
@@ -488,6 +488,9 @@
std::string GetExtensionId() const;
bool IsExtensionKeyword() const;
+ std::string sync_guid() const { return sync_guid_; }
+ void set_sync_guid(const std::string& guid) { sync_guid_ = guid; }
+
private:
friend void MergeEnginesFromPrepopulateData(
PrefService* prefs,
@@ -534,6 +537,9 @@
SearchEngineType search_engine_type_;
int logo_id_;
int prepopulate_id_;
+ // The primary unique identifier for Sync. This is only set on TemplateURLs
+ // that have been associated with Sync.
+ std::string sync_guid_;
// TODO(sky): Add date last parsed OSD file.
};
« no previous file with comments | « no previous file | chrome/browser/search_engines/template_url_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698