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

Side by Side Diff: chrome/browser/sync/glue/autofill_profile_syncable_service.cc

Issue 7912002: Fix for Crash in AutofillProfileSyncableService::ActOnChange (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/sync/glue/autofill_profile_syncable_service.h" 5 #include "chrome/browser/sync/glue/autofill_profile_syncable_service.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/tracked.h" 8 #include "base/tracked.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 break; 394 break;
395 } 395 }
396 default: 396 default:
397 NOTREACHED(); 397 NOTREACHED();
398 } 398 }
399 SyncError error = sync_processor_->ProcessSyncChanges(FROM_HERE, new_changes); 399 SyncError error = sync_processor_->ProcessSyncChanges(FROM_HERE, new_changes);
400 if (error.IsSet()) { 400 if (error.IsSet()) {
401 LOG(WARNING) << "[AUTOFILL SYNC]" 401 LOG(WARNING) << "[AUTOFILL SYNC]"
402 << " Failed processing change:" 402 << " Failed processing change:"
403 << " Error:" << error.message() 403 << " Error:" << error.message()
404 << " Guid:" << change.profile()->guid(); 404 << " Guid:" << change.key();
405 } 405 }
406 } 406 }
407 407
408 SyncData AutofillProfileSyncableService::CreateData( 408 SyncData AutofillProfileSyncableService::CreateData(
409 const AutofillProfile& profile) { 409 const AutofillProfile& profile) {
410 sync_pb::EntitySpecifics specifics; 410 sync_pb::EntitySpecifics specifics;
411 WriteAutofillProfile(profile, &specifics); 411 WriteAutofillProfile(profile, &specifics);
412 return SyncData::CreateLocalData(profile.guid(), profile.guid(), specifics); 412 return SyncData::CreateLocalData(profile.guid(), profile.guid(), specifics);
413 } 413 }
414 414
415 AutofillProfileSyncableService::DataBundle::DataBundle() {} 415 AutofillProfileSyncableService::DataBundle::DataBundle() {}
416 416
417 AutofillProfileSyncableService::DataBundle::~DataBundle() { 417 AutofillProfileSyncableService::DataBundle::~DataBundle() {
418 } 418 }
419 419
420 } // namespace browser_sync 420 } // namespace browser_sync
421 421
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698