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

Unified Diff: chrome/install_static/product_install_details.cc

Issue 2867063002: Stability instrumentation Crashpad integration (Closed)
Patch Set: MakeProductDetails checks CurrentProcessNeedsProfileDir Created 3 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
Index: chrome/install_static/product_install_details.cc
diff --git a/chrome/install_static/product_install_details.cc b/chrome/install_static/product_install_details.cc
index 3e8bec502296492e070c3f1465554634666a72e8..0159125eb0556be461adc49fcaaa97aef16450af 100644
--- a/chrome/install_static/product_install_details.cc
+++ b/chrome/install_static/product_install_details.cc
@@ -11,6 +11,7 @@
#include "chrome/install_static/install_details.h"
#include "chrome/install_static/install_modes.h"
#include "chrome/install_static/install_util.h"
+#include "chrome/install_static/user_data_dir.h"
#include "chrome_elf/nt_registry/nt_registry.h"
namespace install_static {
@@ -139,6 +140,13 @@ std::unique_ptr<PrimaryInstallDetails> MakeProductDetails(
details->set_update_ap(update_ap);
details->set_update_cohort_name(update_cohort_name);
+ if (CurrentProcessNeedsProfileDir()) {
+ std::wstring user_data_dir;
+ // DO NOT SUBMIT: how should we deal with a failure here?
grt (UTC plus 2) 2017/05/19 08:15:50 based on the comment in GetUserDataDirectoryImpl,
scottmg 2017/05/19 17:46:52 Right, ideally we'd CHECK somewhere later so that
manzagop (departed) 2017/05/19 22:02:07 Is an empty string an indicator of invalid user-da
manzagop (departed) 2017/05/19 22:02:07 IIUC this is called before crash reporting is set
scottmg 2017/05/19 22:28:06 Wow, this is confusing. I think what you have in p
manzagop (departed) 2017/05/23 14:59:14 Done.
+ install_static::GetUserDataDirectory(*mode, &user_data_dir, nullptr);
+ details->set_user_data_dir(user_data_dir);
+ }
+
return details;
}

Powered by Google App Engine
This is Rietveld 408576698