| Index: sync/syncable/model_type.cc
|
| diff --git a/sync/syncable/model_type.cc b/sync/syncable/model_type.cc
|
| index 5b92c786fc4d2f290387629155bbb0dbed72d189..4eb6e753f7ffcf393161d731cdbb547f7a618335 100644
|
| --- a/sync/syncable/model_type.cc
|
| +++ b/sync/syncable/model_type.cc
|
| @@ -915,6 +915,7 @@ const char kSupervisedUserNotificationType[] = "MANAGED_USER";
|
| const char kSupervisedUserSharedSettingNotificationType[] =
|
| "MANAGED_USER_SHARED_SETTING";
|
| const char kArticleNotificationType[] = "ARTICLE";
|
| +const char kWifiCredentialNotificationType[] = "WIFI_CREDENTIAL";
|
| } // namespace
|
|
|
| bool RealModelTypeToNotificationType(ModelType model_type,
|
| @@ -1007,6 +1008,9 @@ bool RealModelTypeToNotificationType(ModelType model_type,
|
| case ARTICLES:
|
| *notification_type = kArticleNotificationType;
|
| return true;
|
| + case WIFI_CREDENTIALS:
|
| + *notification_type = kWifiCredentialNotificationType;
|
| + return true;
|
| default:
|
| break;
|
| }
|
| @@ -1104,6 +1108,9 @@ bool NotificationTypeToRealModelType(const std::string& notification_type,
|
| } else if (notification_type == kArticleNotificationType) {
|
| *model_type = ARTICLES;
|
| return true;
|
| + } else if (notification_type == kWifiCredentialNotificationType) {
|
| + *model_type = WIFI_CREDENTIALS;
|
| + return true;
|
| }
|
| *model_type = UNSPECIFIED;
|
| return false;
|
|
|