summaryrefslogtreecommitdiffstats
path: root/cloud_print/service/win/cloud_print_service.cc
diff options
context:
space:
mode:
authorvitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-09 09:18:10 +0000
committervitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-09 09:18:10 +0000
commit1aadd261731451d432582021222879f75c70d90c (patch)
tree9d2e78926c4a44dc16a36c74795e1697abf1d273 /cloud_print/service/win/cloud_print_service.cc
parenta6ccc3b5c08a4589a8ee822f077b74791d8d5fbb (diff)
downloadchromium_src-1aadd261731451d432582021222879f75c70d90c.zip
chromium_src-1aadd261731451d432582021222879f75c70d90c.tar.gz
chromium_src-1aadd261731451d432582021222879f75c70d90c.tar.bz2
Don't call AbsolutePath for empty values.
AbsolutePath convert empty values to abs path to current dir. TBR=gene Review URL: https://chromiumcodereview.appspot.com/13901003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193058 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cloud_print/service/win/cloud_print_service.cc')
-rw-r--r--cloud_print/service/win/cloud_print_service.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/cloud_print/service/win/cloud_print_service.cc b/cloud_print/service/win/cloud_print_service.cc
index 75951b2..079c18d 100644
--- a/cloud_print/service/win/cloud_print_service.cc
+++ b/cloud_print/service/win/cloud_print_service.cc
@@ -183,7 +183,8 @@ class CloudPrintServiceModule
user_data_dir_switch_ =
command_line.GetSwitchValuePath(switches::kUserDataDir);
- file_util::AbsolutePath(&user_data_dir_switch_);
+ if (!user_data_dir_switch_.empty())
+ file_util::AbsolutePath(&user_data_dir_switch_);
if (command_line.HasSwitch(kStopSwitch))
return controller_->StopService();