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

Side by Side Diff: sync/syncable/model_type.cc

Issue 10825047: Fix a typo in RealModelTypeToNotificationType. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/sync/test/integration/sync_test.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #include "sync/internal_api/public/base/model_type.h" 5 #include "sync/internal_api/public/base/model_type.h"
6 6
7 #include "base/string_split.h" 7 #include "base/string_split.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "sync/protocol/app_notification_specifics.pb.h" 9 #include "sync/protocol/app_notification_specifics.pb.h"
10 #include "sync/protocol/app_setting_specifics.pb.h" 10 #include "sync/protocol/app_setting_specifics.pb.h"
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 case TYPED_URLS: 446 case TYPED_URLS:
447 *notification_type = kTypedUrlNotificationType; 447 *notification_type = kTypedUrlNotificationType;
448 return true; 448 return true;
449 case EXTENSIONS: 449 case EXTENSIONS:
450 *notification_type = kExtensionNotificationType; 450 *notification_type = kExtensionNotificationType;
451 return true; 451 return true;
452 case NIGORI: 452 case NIGORI:
453 *notification_type = kNigoriNotificationType; 453 *notification_type = kNigoriNotificationType;
454 return true; 454 return true;
455 case APP_SETTINGS: 455 case APP_SETTINGS:
456 *notification_type = kAppNotificationType; 456 *notification_type = kAppSettingNotificationType;
457 return true; 457 return true;
458 case APPS: 458 case APPS:
459 *notification_type = kAppNotificationType; 459 *notification_type = kAppNotificationType;
460 return true; 460 return true;
461 case SEARCH_ENGINES: 461 case SEARCH_ENGINES:
462 *notification_type = kSearchEngineNotificationType; 462 *notification_type = kSearchEngineNotificationType;
463 return true; 463 return true;
464 case SESSIONS: 464 case SESSIONS:
465 *notification_type = kSessionNotificationType; 465 *notification_type = kSessionNotificationType;
466 return true; 466 return true;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 *model_type = UNSPECIFIED; 531 *model_type = UNSPECIFIED;
532 return false; 532 return false;
533 } 533 }
534 } 534 }
535 535
536 bool IsRealDataType(ModelType model_type) { 536 bool IsRealDataType(ModelType model_type) {
537 return model_type >= FIRST_REAL_MODEL_TYPE && model_type < MODEL_TYPE_COUNT; 537 return model_type >= FIRST_REAL_MODEL_TYPE && model_type < MODEL_TYPE_COUNT;
538 } 538 }
539 539
540 } // namespace syncer 540 } // namespace syncer
OLDNEW
« no previous file with comments | « chrome/browser/sync/test/integration/sync_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698