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

Unified Diff: cloud_print/service/win/cloud_print_service.cc

Issue 1010923002: If possible, use the PathService instead of the --user-data-dir flag directly (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
Index: cloud_print/service/win/cloud_print_service.cc
diff --git a/cloud_print/service/win/cloud_print_service.cc b/cloud_print/service/win/cloud_print_service.cc
index c1b9601bada8c0411dd399b89fcefeb05fe31d68..c3de1d8c621171d07560fad8dea685dffbb1b27d 100644
--- a/cloud_print/service/win/cloud_print_service.cc
+++ b/cloud_print/service/win/cloud_print_service.cc
@@ -28,6 +28,7 @@
#include "base/strings/utf_string_conversions.h"
#include "base/win/scoped_handle.h"
#include "chrome/common/chrome_constants.h"
+#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
#include "cloud_print/common/win/cloud_print_utils.h"
#include "cloud_print/service/service_constants.h"
@@ -209,8 +210,7 @@ class CloudPrintServiceModule
return E_INVALIDARG;
*is_service = false;
- user_data_dir_switch_ =
grt (UTC plus 2) 2015/03/26 18:36:22 leave this one alone, too
noms (inactive) 2015/03/30 14:06:33 Done.
- command_line.GetSwitchValuePath(switches::kUserDataDir);
+ PathService::Get(chrome::DIR_USER_DATA, &user_data_dir_switch_);
if (!user_data_dir_switch_.empty())
user_data_dir_switch_ = base::MakeAbsoluteFilePath(user_data_dir_switch_);
« cloud_print/service/win/chrome_launcher.cc ('K') | « cloud_print/service/win/chrome_launcher.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698