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

Unified Diff: chrome/browser/sync/internal_api/change_record.cc

Issue 10147003: [Sync] Move 'syncapi_core' and 'sync_unit_tests' targets to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Win update errors 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/sync/internal_api/change_record.cc
diff --git a/chrome/browser/sync/internal_api/change_record.cc b/chrome/browser/sync/internal_api/change_record.cc
deleted file mode 100644
index f13020382e0ad99136ecc9f7e546b4a8ef2e2812..0000000000000000000000000000000000000000
--- a/chrome/browser/sync/internal_api/change_record.cc
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/sync/internal_api/change_record.h"
-
-#include "base/string_number_conversions.h"
-#include "base/values.h"
-#include "chrome/browser/sync/internal_api/base_node.h"
-#include "chrome/browser/sync/internal_api/read_node.h"
-#include "sync/protocol/proto_value_conversions.h"
-
-namespace sync_api {
-
-ChangeRecord::ChangeRecord()
- : id(kInvalidId), action(ACTION_ADD) {}
-
-ChangeRecord::~ChangeRecord() {}
-
-DictionaryValue* ChangeRecord::ToValue() const {
- DictionaryValue* value = new DictionaryValue();
- std::string action_str;
- switch (action) {
- case ACTION_ADD:
- action_str = "Add";
- break;
- case ACTION_DELETE:
- action_str = "Delete";
- break;
- case ACTION_UPDATE:
- action_str = "Update";
- break;
- default:
- NOTREACHED();
- action_str = "Unknown";
- break;
- }
- value->SetString("action", action_str);
- value->SetString("id", base::Int64ToString(id));
- if (action == ACTION_DELETE) {
- if (extra.get()) {
- value->Set("extra", extra->ToValue());
- }
- value->Set("specifics",
- browser_sync::EntitySpecificsToValue(specifics));
- }
- return value;
-}
-
-ExtraPasswordChangeRecordData::ExtraPasswordChangeRecordData() {}
-
-ExtraPasswordChangeRecordData::ExtraPasswordChangeRecordData(
- const sync_pb::PasswordSpecificsData& data)
- : unencrypted_(data) {
-}
-
-ExtraPasswordChangeRecordData::~ExtraPasswordChangeRecordData() {}
-
-DictionaryValue* ExtraPasswordChangeRecordData::ToValue() const {
- return browser_sync::PasswordSpecificsDataToValue(unencrypted_);
-}
-
-const sync_pb::PasswordSpecificsData&
- ExtraPasswordChangeRecordData::unencrypted() const {
- return unencrypted_;
-}
-
-} // namespace sync_api
-
« no previous file with comments | « chrome/browser/sync/internal_api/change_record.h ('k') | chrome/browser/sync/internal_api/change_record_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698