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

Unified Diff: sync/util/get_session_name.cc

Issue 14963003: Use the machine hostname on Linux machines for the sync session name rather than (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sync/sync_core.gypi ('k') | sync/util/get_session_name_linux.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/util/get_session_name.cc
===================================================================
--- sync/util/get_session_name.cc (revision 198553)
+++ sync/util/get_session_name.cc (working copy)
@@ -15,7 +15,7 @@
#include "base/command_line.h"
#include "chromeos/chromeos_switches.h"
#elif defined(OS_LINUX)
-#include "base/linux_util.h"
+#include "sync/util/get_session_name_linux.h"
#elif defined(OS_IOS)
#include "sync/util/get_session_name_ios.h"
#elif defined(OS_MACOSX)
@@ -60,7 +60,7 @@
// "CHROMEOS_RELEASE_BOARD" line in chrome://system.
session_name = board.substr(0, 6) == "stumpy" ? "Chromebox" : "Chromebook";
#elif defined(OS_LINUX)
- session_name = base::GetLinuxDistro();
+ session_name = internal::GetHostname();
#elif defined(OS_IOS)
session_name = internal::GetComputerName();
#elif defined(OS_MACOSX)
« no previous file with comments | « sync/sync_core.gypi ('k') | sync/util/get_session_name_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698