| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/common/child_process_logging.h" | 5 #include "chrome/common/child_process_logging.h" |
| 6 | 6 |
| 7 #import <Foundation/Foundation.h> | 7 #import <Foundation/Foundation.h> |
| 8 | 8 |
| 9 #include "base/string_number_conversions.h" | 9 #include "base/string_number_conversions.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| 11 #include "base/stringprintf.h" | 11 #include "base/stringprintf.h" |
| 12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
| 13 #include "chrome/common/gpu_info.h" | |
| 14 #include "chrome/installer/util/google_update_settings.h" | 13 #include "chrome/installer/util/google_update_settings.h" |
| 14 #include "content/common/gpu_info.h" |
| 15 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
| 16 | 16 |
| 17 namespace child_process_logging { | 17 namespace child_process_logging { |
| 18 | 18 |
| 19 const int kMaxNumCrashURLChunks = 8; | 19 const int kMaxNumCrashURLChunks = 8; |
| 20 const int kMaxNumURLChunkValueLength = 255; | 20 const int kMaxNumURLChunkValueLength = 255; |
| 21 const char *kUrlChunkFormatStr = "url-chunk-%d"; | 21 const char *kUrlChunkFormatStr = "url-chunk-%d"; |
| 22 const char *kGuidParamName = "guid"; | 22 const char *kGuidParamName = "guid"; |
| 23 const char *kGPUVendorIdParamName = "gpu-vendid"; | 23 const char *kGPUVendorIdParamName = "gpu-vendid"; |
| 24 const char *kGPUDeviceIdParamName = "gpu-devid"; | 24 const char *kGPUDeviceIdParamName = "gpu-devid"; |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 NSString *value = [NSString stringWithFormat:@"%d", number_of_views]; | 177 NSString *value = [NSString stringWithFormat:@"%d", number_of_views]; |
| 178 set_key_func(key, value); | 178 set_key_func(key, value); |
| 179 } | 179 } |
| 180 | 180 |
| 181 void SetNumberOfViews(int number_of_views) { | 181 void SetNumberOfViews(int number_of_views) { |
| 182 if (g_set_key_func) | 182 if (g_set_key_func) |
| 183 SetNumberOfViewsImpl(number_of_views, g_set_key_func); | 183 SetNumberOfViewsImpl(number_of_views, g_set_key_func); |
| 184 } | 184 } |
| 185 | 185 |
| 186 } // namespace child_process_logging | 186 } // namespace child_process_logging |
| OLD | NEW |