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

Side by Side Diff: chrome/browser/chrome_browser_field_trials_desktop.cc

Issue 2666653002: Record field-trial information in stability file for crash analysis. (Closed)
Patch Set: use c++ loop format Created 3 years, 10 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/browser/chrome_browser_field_trials_desktop.h" 5 #include "chrome/browser/chrome_browser_field_trials_desktop.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #endif 9 #endif
10 10
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 CHECK(::GetModuleFileName(nullptr, exe_file, arraysize(exe_file))); 154 CHECK(::GetModuleFileName(nullptr, exe_file, arraysize(exe_file)));
155 155
156 base::string16 product_name; 156 base::string16 product_name;
157 base::string16 version_number; 157 base::string16 version_number;
158 base::string16 channel_name; 158 base::string16 channel_name;
159 base::string16 special_build; 159 base::string16 special_build;
160 install_static::GetExecutableVersionDetails(exe_file, &product_name, 160 install_static::GetExecutableVersionDetails(exe_file, &product_name,
161 &version_number, &special_build, 161 &version_number, &special_build,
162 &channel_name); 162 &channel_name);
163 163
164 base::debug::ActivityUserData& global_data = global_tracker->user_data(); 164 base::debug::ActivityUserData& global_data = global_tracker->global_data();
165 global_data.SetString(browser_watcher::kStabilityProduct, product_name); 165 global_data.SetString(browser_watcher::kStabilityProduct, product_name);
166 global_data.SetString(browser_watcher::kStabilityVersion, version_number); 166 global_data.SetString(browser_watcher::kStabilityVersion, version_number);
167 global_data.SetString(browser_watcher::kStabilityChannel, channel_name); 167 global_data.SetString(browser_watcher::kStabilityChannel, channel_name);
168 global_data.SetString(browser_watcher::kStabilitySpecialBuild, 168 global_data.SetString(browser_watcher::kStabilitySpecialBuild,
169 special_build); 169 special_build);
170 #if defined(ARCH_CPU_X86) 170 #if defined(ARCH_CPU_X86)
171 global_data.SetString(browser_watcher::kStabilityPlatform, "Win32"); 171 global_data.SetString(browser_watcher::kStabilityPlatform, "Win32");
172 #elif defined(ARCH_CPU_X86_64) 172 #elif defined(ARCH_CPU_X86_64)
173 global_data.SetString(browser_watcher::kStabilityPlatform, "Win64"); 173 global_data.SetString(browser_watcher::kStabilityPlatform, "Win64");
174 #endif 174 #endif
(...skipping 15 matching lines...) Expand all
190 #endif // defined(OS_WIN) 190 #endif // defined(OS_WIN)
191 // Activate the experiment as early as possible to increase its visibility 191 // Activate the experiment as early as possible to increase its visibility
192 // (e.g. the likelihood of its presence in the serialized system profile). 192 // (e.g. the likelihood of its presence in the serialized system profile).
193 // This also needs to happen before the browser rendez-vous attempt 193 // This also needs to happen before the browser rendez-vous attempt
194 // (NotifyOtherProcessOrCreate) in PreMainMessageLoopRun so the corresponding 194 // (NotifyOtherProcessOrCreate) in PreMainMessageLoopRun so the corresponding
195 // metrics are tagged. 195 // metrics are tagged.
196 base::FeatureList::IsEnabled(features::kDesktopFastShutdown); 196 base::FeatureList::IsEnabled(features::kDesktopFastShutdown);
197 } 197 }
198 198
199 } // namespace chrome 199 } // namespace chrome
OLDNEW
« no previous file with comments | « base/metrics/field_trial.cc ('k') | components/browser_watcher/postmortem_report_collector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698