diff options
author | rsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-12 21:41:59 +0000 |
---|---|---|
committer | rsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-12 21:41:59 +0000 |
commit | 64da00ef5f1126641356ec7a137c569793db004f (patch) | |
tree | 029aac661fa98bef5f5aa64bd84a7f897ac5e1eb /chrome/common/child_process_logging_win.cc | |
parent | df8a7a360b3454d8b71071d3972fc8694734b80c (diff) | |
download | chromium_src-64da00ef5f1126641356ec7a137c569793db004f.zip chromium_src-64da00ef5f1126641356ec7a137c569793db004f.tar.gz chromium_src-64da00ef5f1126641356ec7a137c569793db004f.tar.bz2 |
Set the number of views using the crash key logging system.
BUG=77656
Review URL: https://chromiumcodereview.appspot.com/23868022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222874 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/child_process_logging_win.cc')
-rw-r--r-- | chrome/common/child_process_logging_win.cc | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/chrome/common/child_process_logging_win.cc b/chrome/common/child_process_logging_win.cc index c94b3cc..c7cd7ac 100644 --- a/chrome/common/child_process_logging_win.cc +++ b/chrome/common/child_process_logging_win.cc @@ -27,10 +27,6 @@ typedef void (__cdecl *MainSetClientId)(const wchar_t*); typedef void (__cdecl *MainSetPrinterInfo)(const wchar_t*); // exported in breakpad_win.cc: -// void __declspec(dllexport) __cdecl SetNumberOfViews. -typedef void (__cdecl *MainSetNumberOfViews)(int); - -// exported in breakpad_win.cc: // void __declspec(dllexport) __cdecl SetCommandLine2 typedef void (__cdecl *MainSetCommandLine)(const wchar_t**, size_t); @@ -158,21 +154,6 @@ void SetExperimentList(const std::vector<string16>& experiments) { (set_experiment_list)(&cstrings[0], cstrings.size(), experiments.size()); } -void SetNumberOfViews(int number_of_views) { - static MainSetNumberOfViews set_number_of_views = NULL; - // note: benign race condition on set_number_of_views. - if (!set_number_of_views) { - HMODULE exe_module = GetModuleHandle(chrome::kBrowserProcessExecutableName); - if (!exe_module) - return; - set_number_of_views = reinterpret_cast<MainSetNumberOfViews>( - GetProcAddress(exe_module, "SetNumberOfViews")); - if (!set_number_of_views) - return; - } - (set_number_of_views)(number_of_views); -} - namespace { void SetCrashKeyValueTrampoline(const base::StringPiece& key, |