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

Side by Side Diff: sync/protocol/proto_enum_conversions.h

Issue 93883004: Sync the launch type pref for apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unfix nit because it prevents testing of how invalid values are handled Created 6 years, 11 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
« no previous file with comments | « sync/protocol/app_specifics.proto ('k') | sync/protocol/proto_enum_conversions.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 #ifndef SYNC_PROTOCOL_PROTO_ENUM_CONVERSIONS_H_ 5 #ifndef SYNC_PROTOCOL_PROTO_ENUM_CONVERSIONS_H_
6 #define SYNC_PROTOCOL_PROTO_ENUM_CONVERSIONS_H_ 6 #define SYNC_PROTOCOL_PROTO_ENUM_CONVERSIONS_H_
7 7
8 // Keep this file in sync with the .proto files in this directory. 8 // Keep this file in sync with the .proto files in this directory.
9 9
10 #include "sync/base/sync_export.h" 10 #include "sync/base/sync_export.h"
11 #include "sync/protocol/app_list_specifics.pb.h" 11 #include "sync/protocol/app_list_specifics.pb.h"
12 #include "sync/protocol/app_specifics.pb.h"
12 #include "sync/protocol/client_debug_info.pb.h" 13 #include "sync/protocol/client_debug_info.pb.h"
13 #include "sync/protocol/session_specifics.pb.h" 14 #include "sync/protocol/session_specifics.pb.h"
14 #include "sync/protocol/sync.pb.h" 15 #include "sync/protocol/sync.pb.h"
15 16
16 // Utility functions to get the string equivalent for some sync proto 17 // Utility functions to get the string equivalent for some sync proto
17 // enums. 18 // enums.
18 19
19 namespace syncer { 20 namespace syncer {
20 21
21 // The returned strings (which don't have to be freed) are in ASCII. 22 // The returned strings (which don't have to be freed) are in ASCII.
(...skipping 20 matching lines...) Expand all
42 43
43 SYNC_EXPORT_PRIVATE const char* GetResponseTypeString( 44 SYNC_EXPORT_PRIVATE const char* GetResponseTypeString(
44 sync_pb::CommitResponse::ResponseType response_type); 45 sync_pb::CommitResponse::ResponseType response_type);
45 46
46 SYNC_EXPORT_PRIVATE const char* GetErrorTypeString( 47 SYNC_EXPORT_PRIVATE const char* GetErrorTypeString(
47 sync_pb::SyncEnums::ErrorType error_type); 48 sync_pb::SyncEnums::ErrorType error_type);
48 49
49 SYNC_EXPORT_PRIVATE const char* GetActionString( 50 SYNC_EXPORT_PRIVATE const char* GetActionString(
50 sync_pb::SyncEnums::Action action); 51 sync_pb::SyncEnums::Action action);
51 52
53 SYNC_EXPORT_PRIVATE const char* GetLaunchTypeString(
54 sync_pb::AppSpecifics::LaunchType launch_type);
55
56
52 const char* GetDeviceTypeString(sync_pb::SyncEnums::DeviceType device_type); 57 const char* GetDeviceTypeString(sync_pb::SyncEnums::DeviceType device_type);
53 58
54 const char* GetFaviconTypeString(sync_pb::SessionTab::FaviconType favicon_type); 59 const char* GetFaviconTypeString(sync_pb::SessionTab::FaviconType favicon_type);
55 60
56 const char* PassphraseTypeString(sync_pb::NigoriSpecifics::PassphraseType type); 61 const char* PassphraseTypeString(sync_pb::NigoriSpecifics::PassphraseType type);
57 62
58 const char* SingletonEventTypeString( 63 const char* SingletonEventTypeString(
59 sync_pb::DebugEventInfo::SingletonEventType type); 64 sync_pb::DebugEventInfo::SingletonEventType type);
60 65
61 const char* GetBlockedStateString(sync_pb::TabNavigation::BlockedState state); 66 const char* GetBlockedStateString(sync_pb::TabNavigation::BlockedState state);
62 67
63 } // namespace syncer 68 } // namespace syncer
64 69
65 #endif // SYNC_PROTOCOL_PROTO_ENUM_CONVERSIONS_H_ 70 #endif // SYNC_PROTOCOL_PROTO_ENUM_CONVERSIONS_H_
OLDNEW
« no previous file with comments | « sync/protocol/app_specifics.proto ('k') | sync/protocol/proto_enum_conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698