| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_linux.h" | 5 #include "chrome/browser/shell_integration_linux.h" |
| 6 | 6 |
| 7 #include <fcntl.h> | 7 #include <fcntl.h> |
| 8 #include <stddef.h> |
| 8 | 9 |
| 9 #if defined(USE_GLIB) | 10 #if defined(USE_GLIB) |
| 10 #include <glib.h> | 11 #include <glib.h> |
| 11 #endif | 12 #endif |
| 12 | 13 |
| 13 #include <stdlib.h> | 14 #include <stdlib.h> |
| 14 #include <sys/stat.h> | 15 #include <sys/stat.h> |
| 15 #include <sys/types.h> | 16 #include <sys/types.h> |
| 16 #include <unistd.h> | 17 #include <unistd.h> |
| 17 | 18 |
| (...skipping 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1053 base::FilePath applications_menu = GetDataWriteLocation(env.get()); | 1054 base::FilePath applications_menu = GetDataWriteLocation(env.get()); |
| 1054 applications_menu = applications_menu.AppendASCII("applications"); | 1055 applications_menu = applications_menu.AppendASCII("applications"); |
| 1055 std::vector<base::FilePath> shortcut_filenames_app_menu = | 1056 std::vector<base::FilePath> shortcut_filenames_app_menu = |
| 1056 GetExistingProfileShortcutFilenames(profile_path, applications_menu); | 1057 GetExistingProfileShortcutFilenames(profile_path, applications_menu); |
| 1057 for (const auto& menu : shortcut_filenames_app_menu) { | 1058 for (const auto& menu : shortcut_filenames_app_menu) { |
| 1058 DeleteShortcutInApplicationsMenu(menu, base::FilePath(kDirectoryFilename)); | 1059 DeleteShortcutInApplicationsMenu(menu, base::FilePath(kDirectoryFilename)); |
| 1059 } | 1060 } |
| 1060 } | 1061 } |
| 1061 | 1062 |
| 1062 } // namespace shell_integration_linux | 1063 } // namespace shell_integration_linux |
| OLD | NEW |