Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Side by Side Diff: chrome/browser/web_applications/web_app_mac.mm

Issue 2929773002: Mac: Remove create_application_shortcut_cocoa.mm (Closed)
Patch Set: One less file Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after
1106 std::unique_ptr<web_app::ShortcutInfo> shortcut_info = 1106 std::unique_ptr<web_app::ShortcutInfo> shortcut_info =
1107 BuildShortcutInfoFromBundle(*it); 1107 BuildShortcutInfoFromBundle(*it);
1108 WebAppShortcutCreator shortcut_creator(it->DirName(), shortcut_info.get()); 1108 WebAppShortcutCreator shortcut_creator(it->DirName(), shortcut_info.get());
1109 shortcut_creator.DeleteShortcuts(); 1109 shortcut_creator.DeleteShortcuts();
1110 } 1110 }
1111 } 1111 }
1112 1112
1113 } // namespace internals 1113 } // namespace internals
1114 1114
1115 } // namespace web_app 1115 } // namespace web_app
1116
1117 namespace chrome {
1118
1119 void ShowCreateChromeAppShortcutsDialog(
benwells 2017/06/09 04:28:52 Hmmm .. this name is unfortunate. I guess it doesn
tapted 2017/06/09 05:47:03 Acknowledged.
1120 gfx::NativeWindow /*parent_window*/,
1121 Profile* profile,
1122 const extensions::Extension* app,
1123 const base::Callback<void(bool)>& close_callback) {
1124 // On Mac, the Applications folder is the only option, so don't bother asking
1125 // the user anything. Just create shortcuts.
1126 CreateShortcuts(web_app::SHORTCUT_CREATION_BY_USER,
1127 web_app::ShortcutLocations(), profile, app);
1128 if (!close_callback.is_null())
1129 close_callback.Run(true);
1130 }
1131
1132 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698