Index: chrome/browser/shell_integration_linux.cc |
diff --git a/chrome/browser/shell_integration_linux.cc b/chrome/browser/shell_integration_linux.cc |
index 8ecc0da5f32aab8e985bc738da911debe3adcb7e..ea38c578bb0cf50a2a993b9d00ebaa6b512ed905 100644 |
--- a/chrome/browser/shell_integration_linux.cc |
+++ b/chrome/browser/shell_integration_linux.cc |
@@ -54,7 +54,8 @@ bool GetDesktopShortcutTemplate(std::string* output) { |
const char* xdg_data_dirs = getenv("XDG_DATA_DIRS"); |
if (xdg_data_dirs) { |
- StringTokenizer tokenizer(xdg_data_dirs, ":"); |
+ CStringTokenizer tokenizer(xdg_data_dirs, |
+ xdg_data_dirs + strlen(xdg_data_dirs), ":"); |
while (tokenizer.GetNext()) { |
search_paths.push_back(tokenizer.token()); |
} |