| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "base/command_line.h" | 16 #include "base/command_line.h" |
| 17 #include "base/eintr_wrapper.h" | 17 #include "base/eintr_wrapper.h" |
| 18 #include "base/environment.h" | 18 #include "base/environment.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/i18n/file_util_icu.h" |
| 22 #include "base/message_loop.h" | 22 #include "base/message_loop.h" |
| 23 #include "base/path_service.h" | 23 #include "base/path_service.h" |
| 24 #include "base/process_util.h" | 24 #include "base/process_util.h" |
| 25 #include "base/scoped_temp_dir.h" | 25 #include "base/scoped_temp_dir.h" |
| 26 #include "base/string_number_conversions.h" | 26 #include "base/string_number_conversions.h" |
| 27 #include "base/string_tokenizer.h" | 27 #include "base/string_tokenizer.h" |
| 28 #include "base/string_util.h" | 28 #include "base/string_util.h" |
| 29 #include "base/task.h" | |
| 30 #include "base/thread.h" | 29 #include "base/thread.h" |
| 31 #include "base/utf_string_conversions.h" | 30 #include "base/utf_string_conversions.h" |
| 32 #include "chrome/browser/browser_process.h" | 31 #include "chrome/browser/browser_process.h" |
| 33 #include "chrome/browser/browser_thread.h" | 32 #include "chrome/browser/browser_thread.h" |
| 34 #include "chrome/common/chrome_constants.h" | 33 #include "chrome/common/chrome_constants.h" |
| 35 #include "chrome/common/chrome_paths.h" | 34 #include "chrome/common/chrome_paths.h" |
| 36 #include "chrome/common/chrome_plugin_util.h" | 35 #include "chrome/common/chrome_plugin_util.h" |
| 37 #include "chrome/common/chrome_switches.h" | 36 #include "chrome/common/chrome_switches.h" |
| 38 #include "gfx/codec/png_codec.h" | 37 #include "gfx/codec/png_codec.h" |
| 39 #include "googleurl/src/gurl.h" | 38 #include "googleurl/src/gurl.h" |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 std::string contents = GetDesktopFileContents( | 380 std::string contents = GetDesktopFileContents( |
| 382 shortcut_template, shortcut_info.url, shortcut_info.extension_id, | 381 shortcut_template, shortcut_info.url, shortcut_info.extension_id, |
| 383 shortcut_info.title, icon_name); | 382 shortcut_info.title, icon_name); |
| 384 | 383 |
| 385 if (shortcut_info.create_on_desktop) | 384 if (shortcut_info.create_on_desktop) |
| 386 CreateShortcutOnDesktop(shortcut_filename, contents); | 385 CreateShortcutOnDesktop(shortcut_filename, contents); |
| 387 | 386 |
| 388 if (shortcut_info.create_in_applications_menu) | 387 if (shortcut_info.create_in_applications_menu) |
| 389 CreateShortcutInApplicationsMenu(shortcut_filename, contents); | 388 CreateShortcutInApplicationsMenu(shortcut_filename, contents); |
| 390 } | 389 } |
| OLD | NEW |