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

Unified Diff: components/sync/base/sync_string_conversions.cc

Issue 2245073003: [Sync] Clean up intra-sync DEPS significantly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments/fix test. Created 4 years, 4 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 | « components/sync/base/sync_string_conversions.h ('k') | components/sync/core/shared_model_type_processor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/base/sync_string_conversions.cc
diff --git a/components/sync/base/sync_string_conversions.cc b/components/sync/base/sync_string_conversions.cc
deleted file mode 100644
index d6a9d38e67e1a8f350a17f9b33494547efde3752..0000000000000000000000000000000000000000
--- a/components/sync/base/sync_string_conversions.cc
+++ /dev/null
@@ -1,58 +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 "components/sync/base/sync_string_conversions.h"
-
-#define ENUM_CASE(x) \
- case x: \
- return #x
-
-namespace syncer {
-
-const char* ConnectionStatusToString(ConnectionStatus status) {
- switch (status) {
- ENUM_CASE(CONNECTION_OK);
- ENUM_CASE(CONNECTION_AUTH_ERROR);
- ENUM_CASE(CONNECTION_SERVER_ERROR);
- default:
- NOTREACHED();
- return "INVALID_CONNECTION_STATUS";
- }
-}
-
-// Helper function that converts a PassphraseRequiredReason value to a string.
-const char* PassphraseRequiredReasonToString(PassphraseRequiredReason reason) {
- switch (reason) {
- ENUM_CASE(REASON_PASSPHRASE_NOT_REQUIRED);
- ENUM_CASE(REASON_ENCRYPTION);
- ENUM_CASE(REASON_DECRYPTION);
- default:
- NOTREACHED();
- return "INVALID_REASON";
- }
-}
-
-const char* PassphraseTypeToString(PassphraseType type) {
- switch (type) {
- ENUM_CASE(IMPLICIT_PASSPHRASE);
- ENUM_CASE(KEYSTORE_PASSPHRASE);
- ENUM_CASE(FROZEN_IMPLICIT_PASSPHRASE);
- ENUM_CASE(CUSTOM_PASSPHRASE);
- default:
- NOTREACHED();
- return "INVALID_PASSPHRASE_TYPE";
- }
-}
-
-const char* BootstrapTokenTypeToString(BootstrapTokenType type) {
- switch (type) {
- ENUM_CASE(PASSPHRASE_BOOTSTRAP_TOKEN);
- ENUM_CASE(KEYSTORE_BOOTSTRAP_TOKEN);
- default:
- NOTREACHED();
- return "INVALID_BOOTSTRAP_TOKEN_TYPE";
- }
-}
-
-} // namespace syncer
« no previous file with comments | « components/sync/base/sync_string_conversions.h ('k') | components/sync/core/shared_model_type_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698