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

Unified Diff: chrome/browser/extensions/extension_sync_data.h

Issue 6902054: [Sync] Rip out overly-complicated ExtensionData class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed asargent's comments Created 9 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
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_sync_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_sync_data.h
diff --git a/chrome/browser/extensions/extension_sync_data.h b/chrome/browser/extensions/extension_sync_data.h
index c454946d08bf218c81e0570848894305a13cf5da..312103d6f9a394bb0f93b4cb6f733b9556aac074 100644
--- a/chrome/browser/extensions/extension_sync_data.h
+++ b/chrome/browser/extensions/extension_sync_data.h
@@ -16,6 +16,12 @@ struct ExtensionSyncData {
ExtensionSyncData();
~ExtensionSyncData();
+ // Merge |new_data| into this object. All version-independent
+ // properties are copied from |new_data|, and version-dependent
+ // properties are copied only if |new_data|'s version is equal to or
+ // greater than the current version.
+ void Merge(const ExtensionSyncData& new_data);
+
std::string id;
// Version-independent properties (i.e., used even when the
@@ -29,7 +35,6 @@ struct ExtensionSyncData {
// version of the currenty-installed extension matches |version|).
Version version;
GURL update_url;
-
// Used only for debugging.
std::string name;
};
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_sync_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698