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

Unified Diff: sync/syncable/model_type.cc

Issue 709683004: components: add wifi_sync component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@submit-1-security-class
Patch Set: fix android_aosp build Created 6 years 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/wifi_sync/wifi_security_class_chromeos_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/syncable/model_type.cc
diff --git a/sync/syncable/model_type.cc b/sync/syncable/model_type.cc
index 321d546ae4b394813799085eae73e51777fd1b2f..c7a4aa5f2acfe833ea66bc4a704fb6377f4dbebb 100644
--- a/sync/syncable/model_type.cc
+++ b/sync/syncable/model_type.cc
@@ -937,6 +937,7 @@ const char kSupervisedUserSharedSettingNotificationType[] =
const char kSupervisedUserWhitelistNotificationType[] =
"MANAGED_USER_WHITELIST";
const char kArticleNotificationType[] = "ARTICLE";
+const char kWifiCredentialNotificationType[] = "WIFI_CREDENTIAL";
} // namespace
bool RealModelTypeToNotificationType(ModelType model_type,
@@ -1032,6 +1033,9 @@ bool RealModelTypeToNotificationType(ModelType model_type,
case ARTICLES:
*notification_type = kArticleNotificationType;
return true;
+ case WIFI_CREDENTIALS:
+ *notification_type = kWifiCredentialNotificationType;
+ return true;
default:
break;
}
@@ -1132,6 +1136,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;
« no previous file with comments | « components/wifi_sync/wifi_security_class_chromeos_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698