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

Unified Diff: chrome/browser/sync/glue/typed_url_change_processor.cc

Issue 9460047: sync: remove use of protobuf extensions in protocol to reduce static init overhead. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fred's review Created 8 years, 10 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 | « chrome/browser/sync/glue/session_change_processor.cc ('k') | chrome/browser/sync/internal_api/base_node.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/glue/typed_url_change_processor.cc
diff --git a/chrome/browser/sync/glue/typed_url_change_processor.cc b/chrome/browser/sync/glue/typed_url_change_processor.cc
index 74277ccb911909634ceed8430c873c5a12662742..7fe8b2b2c9518b47aa039160c905f03726c493a7 100644
--- a/chrome/browser/sync/glue/typed_url_change_processor.cc
+++ b/chrome/browser/sync/glue/typed_url_change_processor.cc
@@ -213,9 +213,9 @@ void TypedUrlChangeProcessor::ApplyChangesFromSyncModel(
changes.Get().begin(); it != changes.Get().end(); ++it) {
if (sync_api::ChangeRecord::ACTION_DELETE ==
it->action) {
- DCHECK(it->specifics.HasExtension(sync_pb::typed_url)) <<
+ DCHECK(it->specifics.has_typed_url()) <<
"Typed URL delete change does not have necessary specifics.";
- GURL url(it->specifics.GetExtension(sync_pb::typed_url).url());
+ GURL url(it->specifics.typed_url().url());
pending_deleted_urls_.push_back(url);
continue;
}
« no previous file with comments | « chrome/browser/sync/glue/session_change_processor.cc ('k') | chrome/browser/sync/internal_api/base_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698