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

Side by Side Diff: chrome/browser/sync/glue/sync_backend_host.cc

Issue 10960057: Enable all registered types by default on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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/glue/session_change_processor.cc ('k') | chrome/browser/sync/sync_prefs.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 (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 "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #include "chrome/browser/sync/glue/sync_backend_host.h" 7 #include "chrome/browser/sync/glue/sync_backend_host.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <map> 10 #include <map>
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 // Helper to construct a user agent string (ASCII) suitable for use by 359 // Helper to construct a user agent string (ASCII) suitable for use by
360 // the syncapi for any HTTP communication. This string is used by the sync 360 // the syncapi for any HTTP communication. This string is used by the sync
361 // backend for classifying client types when calculating statistics. 361 // backend for classifying client types when calculating statistics.
362 std::string MakeUserAgentForSyncApi() { 362 std::string MakeUserAgentForSyncApi() {
363 std::string user_agent; 363 std::string user_agent;
364 user_agent = "Chrome "; 364 user_agent = "Chrome ";
365 #if defined(OS_WIN) 365 #if defined(OS_WIN)
366 user_agent += "WIN "; 366 user_agent += "WIN ";
367 #elif defined(OS_CHROMEOS) 367 #elif defined(OS_CHROMEOS)
368 user_agent += "CROS "; 368 user_agent += "CROS ";
369 #elif defined(OS_ANDROID)
370 user_agent += "ANDROID ";
369 #elif defined(OS_LINUX) 371 #elif defined(OS_LINUX)
370 user_agent += "LINUX "; 372 user_agent += "LINUX ";
371 #elif defined(OS_FREEBSD) 373 #elif defined(OS_FREEBSD)
372 user_agent += "FREEBSD "; 374 user_agent += "FREEBSD ";
373 #elif defined(OS_OPENBSD) 375 #elif defined(OS_OPENBSD)
374 user_agent += "OPENBSD "; 376 user_agent += "OPENBSD ";
375 #elif defined(OS_MACOSX) 377 #elif defined(OS_MACOSX)
376 user_agent += "MAC "; 378 user_agent += "MAC ";
377 #endif 379 #endif
378 chrome::VersionInfo version_info; 380 chrome::VersionInfo version_info;
(...skipping 1163 matching lines...) Expand 10 before | Expand all | Expand 10 after
1542 const syncer::ModelTypeSet failed_configuration_types) { 1544 const syncer::ModelTypeSet failed_configuration_types) {
1543 HandleInitializationCompletedOnFrontendLoop( 1545 HandleInitializationCompletedOnFrontendLoop(
1544 failed_configuration_types.Empty()); 1546 failed_configuration_types.Empty());
1545 } 1547 }
1546 1548
1547 #undef SDVLOG 1549 #undef SDVLOG
1548 1550
1549 #undef SLOG 1551 #undef SLOG
1550 1552
1551 } // namespace browser_sync 1553 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/session_change_processor.cc ('k') | chrome/browser/sync/sync_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698