OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-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/browser/shell_integration.h" | 5 #include "chrome/browser/shell_integration.h" |
6 | 6 |
7 #include <fcntl.h> | 7 #include <fcntl.h> |
8 #include <stdlib.h> | 8 #include <stdlib.h> |
9 #include <sys/stat.h> | 9 #include <sys/stat.h> |
10 #include <sys/types.h> | 10 #include <sys/types.h> |
11 #include <unistd.h> | 11 #include <unistd.h> |
12 | 12 |
13 #include <string> | 13 #include <string> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "app/gfx/codec/png_codec.h" | 16 #include "app/gfx/codec/png_codec.h" |
17 #include "base/command_line.h" | 17 #include "base/command_line.h" |
18 #include "base/eintr_wrapper.h" | 18 #include "base/eintr_wrapper.h" |
19 #include "base/file_path.h" | 19 #include "base/file_path.h" |
20 #include "base/file_util.h" | 20 #include "base/file_util.h" |
| 21 #include "base/i18n/file_util_icu.h" |
21 #include "base/message_loop.h" | 22 #include "base/message_loop.h" |
22 #include "base/path_service.h" | 23 #include "base/path_service.h" |
23 #include "base/process_util.h" | 24 #include "base/process_util.h" |
24 #include "base/scoped_temp_dir.h" | 25 #include "base/scoped_temp_dir.h" |
25 #include "base/string_tokenizer.h" | 26 #include "base/string_tokenizer.h" |
26 #include "base/string_util.h" | 27 #include "base/string_util.h" |
27 #include "base/task.h" | 28 #include "base/task.h" |
28 #include "base/thread.h" | 29 #include "base/thread.h" |
29 #include "chrome/browser/browser_process.h" | 30 #include "chrome/browser/browser_process.h" |
30 #include "chrome/common/chrome_constants.h" | 31 #include "chrome/common/chrome_constants.h" |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 } | 364 } |
364 } | 365 } |
365 return output_buffer; | 366 return output_buffer; |
366 } | 367 } |
367 | 368 |
368 void ShellIntegration::CreateDesktopShortcut( | 369 void ShellIntegration::CreateDesktopShortcut( |
369 const ShortcutInfo& shortcut_info) { | 370 const ShortcutInfo& shortcut_info) { |
370 g_browser_process->file_thread()->message_loop()->PostTask(FROM_HERE, | 371 g_browser_process->file_thread()->message_loop()->PostTask(FROM_HERE, |
371 new CreateDesktopShortcutTask(shortcut_info)); | 372 new CreateDesktopShortcutTask(shortcut_info)); |
372 } | 373 } |
OLD | NEW |