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

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 nits (round 2), and remove dependency from component to chrome Created 6 years, 1 month 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/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;
« components/wifi_sync/wifi_security_class.h ('K') | « components/wifi_sync/wifi_security_class.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698