Index: chrome/app/breakpad_win.cc |
=================================================================== |
--- chrome/app/breakpad_win.cc (revision 145893) |
+++ chrome/app/breakpad_win.cc (working copy) |
@@ -7,7 +7,6 @@ |
#include <windows.h> |
#include <shellapi.h> |
#include <tchar.h> |
-#include <userenv.h> |
#include <algorithm> |
#include <vector> |
@@ -222,35 +221,6 @@ |
} |
} |
-// Returns a string containing a list of all modifiers for the loaded profile. |
-std::wstring GetProfileType() { |
- std::wstring profile_type; |
- DWORD profile_bits = 0; |
- if (::GetProfileType(&profile_bits)) { |
- static const struct { |
- DWORD bit; |
- const wchar_t* name; |
- } kBitNames[] = { |
- { PT_MANDATORY, L"mandatory" }, |
- { PT_ROAMING, L"roaming" }, |
- { PT_TEMPORARY, L"temporary" }, |
- }; |
- for (size_t i = 0; i < arraysize(kBitNames); ++i) { |
- const DWORD this_bit = kBitNames[i].bit; |
- if ((profile_bits & this_bit) != 0) { |
- profile_type.append(kBitNames[i].name); |
- profile_bits &= ~this_bit; |
- if (profile_bits != 0) |
- profile_type.append(L", "); |
- } |
- } |
- } else { |
- DWORD last_error = ::GetLastError(); |
- base::SStringPrintf(&profile_type, L"error %u", last_error); |
- } |
- return profile_type; |
-} |
- |
// Returns the custom info structure based on the dll in parameter and the |
// process type. |
google_breakpad::CustomClientInfo* GetCustomInfo(const std::wstring& exe_path, |
@@ -296,9 +266,6 @@ |
google_breakpad::CustomInfoEntry(L"ptype", type.c_str())); |
g_custom_entries->push_back( |
google_breakpad::CustomInfoEntry(L"channel", channel.c_str())); |
- g_custom_entries->push_back( |
- google_breakpad::CustomInfoEntry(L"profile-type", |
- GetProfileType().c_str())); |
if (!special_build.empty()) |
g_custom_entries->push_back( |