Index: chrome_elf/breakpad.cc |
=================================================================== |
--- chrome_elf/breakpad.cc (revision 271530) |
+++ chrome_elf/breakpad.cc (working copy) |
@@ -126,10 +126,10 @@ |
// Convert #define to a variable so that we can use if() rather than |
// #if below and so at least compile-test the Chrome code in |
// Chromium builds. |
-#if defined(GOOGLE_CHROME_BUILD) |
- bool is_chrome_build = true; |
+#if defined(GOOGLE_CHROME_BUILD) && defined(OFFICIAL_BUILD) |
+ bool is_official_chrome_build = true; |
#else |
- bool is_chrome_build = false; |
+ bool is_official_chrome_build = false; |
#endif |
base::string16 pipe_name; |
@@ -139,8 +139,9 @@ |
if (!use_policy && IsHeadless()) { |
pipe_name = kChromePipeName; |
- } else if (use_policy ? enabled_by_policy : |
- (is_chrome_build && AreUsageStatsEnabled(exe_path))) { |
+ } else if (use_policy ? |
+ enabled_by_policy : |
+ (is_official_chrome_build && AreUsageStatsEnabled(exe_path))) { |
// Build the pipe name. It can be one of: |
// 32-bit system: \\.\pipe\GoogleCrashServices\S-1-5-18 |
// 32-bit user: \\.\pipe\GoogleCrashServices\<user SID> |