Chromium Code Reviews| 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 #import "chrome/browser/web_applications/web_app_mac.h" | 5 #import "chrome/browser/web_applications/web_app_mac.h" |
| 6 | 6 |
| 7 #import <Carbon/Carbon.h> | 7 #import <Carbon/Carbon.h> |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1009 | 1009 |
| 1010 // Update all apps. | 1010 // Update all apps. |
| 1011 scoped_ptr<extensions::ExtensionSet> everything = | 1011 scoped_ptr<extensions::ExtensionSet> everything = |
| 1012 registry->GenerateInstalledExtensionsSet(); | 1012 registry->GenerateInstalledExtensionsSet(); |
| 1013 for (extensions::ExtensionSet::const_iterator it = everything->begin(); | 1013 for (extensions::ExtensionSet::const_iterator it = everything->begin(); |
| 1014 it != everything->end(); ++it) { | 1014 it != everything->end(); ++it) { |
| 1015 if (web_app::ShouldCreateShortcutFor(profile, it->get())) | 1015 if (web_app::ShouldCreateShortcutFor(profile, it->get())) |
| 1016 web_app::UpdateAllShortcuts(base::string16(), profile, it->get()); | 1016 web_app::UpdateAllShortcuts(base::string16(), profile, it->get()); |
| 1017 } | 1017 } |
| 1018 | 1018 |
| 1019 AppListService::Get(chrome::HOST_DESKTOP_TYPE_NATIVE)->CreateShortcut(); | |
|
tapted
2014/06/19 07:32:04
There's kShortcutVersion in app_list_service_mac.m
jackhou1
2014/06/19 07:44:08
Oops, I see. Done.
| |
| 1020 | |
| 1019 callback.Run(); | 1021 callback.Run(); |
| 1020 } | 1022 } |
| 1021 | 1023 |
| 1022 namespace internals { | 1024 namespace internals { |
| 1023 | 1025 |
| 1024 bool CreatePlatformShortcuts( | 1026 bool CreatePlatformShortcuts( |
| 1025 const base::FilePath& app_data_path, | 1027 const base::FilePath& app_data_path, |
| 1026 const ShortcutInfo& shortcut_info, | 1028 const ShortcutInfo& shortcut_info, |
| 1027 const extensions::FileHandlersInfo& file_handlers_info, | 1029 const extensions::FileHandlersInfo& file_handlers_info, |
| 1028 const ShortcutLocations& creation_locations, | 1030 const ShortcutLocations& creation_locations, |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1089 web_app::UpdateShortcutInfoAndIconForApp( | 1091 web_app::UpdateShortcutInfoAndIconForApp( |
| 1090 app, | 1092 app, |
| 1091 profile, | 1093 profile, |
| 1092 base::Bind(&web_app::CreateAppShortcutInfoLoaded, | 1094 base::Bind(&web_app::CreateAppShortcutInfoLoaded, |
| 1093 profile, | 1095 profile, |
| 1094 app, | 1096 app, |
| 1095 close_callback)); | 1097 close_callback)); |
| 1096 } | 1098 } |
| 1097 | 1099 |
| 1098 } // namespace chrome | 1100 } // namespace chrome |
| OLD | NEW |