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

Side by Side Diff: sync/util/get_session_name.cc

Issue 10698014: [Sync] Rename csync namespace to syncer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 years, 5 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 | « sync/util/get_session_name.h ('k') | sync/util/get_session_name_mac.h » ('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 "sync/util/get_session_name.h" 5 #include "sync/util/get_session_name.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/location.h" 10 #include "base/location.h"
11 #include "base/sys_info.h" 11 #include "base/sys_info.h"
12 #include "base/task_runner.h" 12 #include "base/task_runner.h"
13 13
14 #if defined(OS_CHROMEOS) 14 #if defined(OS_CHROMEOS)
15 #include "chrome/browser/chromeos/system/statistics_provider.h" 15 #include "chrome/browser/chromeos/system/statistics_provider.h"
16 #elif defined(OS_LINUX) 16 #elif defined(OS_LINUX)
17 #include "base/linux_util.h" 17 #include "base/linux_util.h"
18 #elif defined(OS_MACOSX) 18 #elif defined(OS_MACOSX)
19 #include "sync/util/get_session_name_mac.h" 19 #include "sync/util/get_session_name_mac.h"
20 #elif defined(OS_WIN) 20 #elif defined(OS_WIN)
21 #include "sync/util/get_session_name_win.h" 21 #include "sync/util/get_session_name_win.h"
22 #elif defined(OS_ANDROID) 22 #elif defined(OS_ANDROID)
23 #include "sync/util/session_utils_android.h" 23 #include "sync/util/session_utils_android.h"
24 #endif 24 #endif
25 25
26 namespace csync { 26 namespace syncer {
27 27
28 namespace { 28 namespace {
29 29
30 std::string GetSessionNameSynchronously() { 30 std::string GetSessionNameSynchronously() {
31 std::string session_name; 31 std::string session_name;
32 #if defined(OS_CHROMEOS) 32 #if defined(OS_CHROMEOS)
33 // TODO(kochi): This is very ad hoc and fragile. http://crosbug.com/30619. 33 // TODO(kochi): This is very ad hoc and fragile. http://crosbug.com/30619.
34 std::string board; 34 std::string board;
35 const char kMachineInfoBoard[] = "CHROMEOS_RELEASE_BOARD"; 35 const char kMachineInfoBoard[] = "CHROMEOS_RELEASE_BOARD";
36 chromeos::system::StatisticsProvider* provider = 36 chromeos::system::StatisticsProvider* provider =
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 base::Unretained(session_name)), 78 base::Unretained(session_name)),
79 base::Bind(&OnSessionNameFilled, 79 base::Bind(&OnSessionNameFilled,
80 done_callback, 80 done_callback,
81 base::Owned(session_name))); 81 base::Owned(session_name)));
82 } 82 }
83 83
84 std::string GetSessionNameSynchronouslyForTesting() { 84 std::string GetSessionNameSynchronouslyForTesting() {
85 return GetSessionNameSynchronously(); 85 return GetSessionNameSynchronously();
86 } 86 }
87 87
88 } // namespace csync 88 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/util/get_session_name.h ('k') | sync/util/get_session_name_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698