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

Unified Diff: sync/internal_api/public/sessions/commit_counters.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 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
Index: sync/internal_api/public/sessions/commit_counters.cc
diff --git a/sync/internal_api/public/sessions/commit_counters.cc b/sync/internal_api/public/sessions/commit_counters.cc
deleted file mode 100644
index 195e1c44a57d1766a6f37273f83b1c738f59cd60..0000000000000000000000000000000000000000
--- a/sync/internal_api/public/sessions/commit_counters.cc
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright 2014 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 "sync/internal_api/public/sessions/commit_counters.h"
-
-#include "base/json/json_string_value_serializer.h"
-#include "base/values.h"
-
-namespace syncer {
-
-CommitCounters::CommitCounters()
- : num_commits_attempted(0),
- num_commits_success(0),
- num_commits_conflict(0),
- num_commits_error(0) {}
-
-CommitCounters::~CommitCounters() {}
-
-std::unique_ptr<base::DictionaryValue> CommitCounters::ToValue() const {
- std::unique_ptr<base::DictionaryValue> value(new base::DictionaryValue());
- value->SetInteger("numCommitsAttempted", num_commits_attempted);
- value->SetInteger("numCommitsSuccess", num_commits_success);
- value->SetInteger("numCommitsConflict", num_commits_conflict);
- value->SetInteger("numCommitsError", num_commits_error);
- return value;
-}
-
-std::string CommitCounters::ToString() const {
- std::string result;
- std::unique_ptr<base::DictionaryValue> value = ToValue();
- JSONStringValueSerializer serializer(&result);
- serializer.Serialize(*value);
- return result;
-}
-
-} // namespace syncer
« no previous file with comments | « sync/internal_api/public/sessions/commit_counters.h ('k') | sync/internal_api/public/sessions/model_neutral_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698