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/ui/views/create_application_shortcut_view.h" | 5 #include "chrome/browser/ui/views/create_application_shortcut_view.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <cmath> | 9 #include <cmath> |
10 #include <utility> | 10 #include <utility> |
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 return CreateApplicationShortcutView::Accept(); | 550 return CreateApplicationShortcutView::Accept(); |
551 } | 551 } |
552 | 552 |
553 bool CreateChromeApplicationShortcutView::Cancel() { | 553 bool CreateChromeApplicationShortcutView::Cancel() { |
554 if (!close_callback_.is_null()) | 554 if (!close_callback_.is_null()) |
555 close_callback_.Run(false); | 555 close_callback_.Run(false); |
556 return CreateApplicationShortcutView::Cancel(); | 556 return CreateApplicationShortcutView::Cancel(); |
557 } | 557 } |
558 | 558 |
559 void CreateChromeApplicationShortcutView::OnAppInfoLoaded( | 559 void CreateChromeApplicationShortcutView::OnAppInfoLoaded( |
560 scoped_ptr<web_app::ShortcutInfo> shortcut_info, | 560 std::unique_ptr<web_app::ShortcutInfo> shortcut_info, |
561 const extensions::FileHandlersInfo& file_handlers_info) { | 561 const extensions::FileHandlersInfo& file_handlers_info) { |
562 shortcut_info_ = std::move(shortcut_info); | 562 shortcut_info_ = std::move(shortcut_info); |
563 file_handlers_info_ = file_handlers_info; | 563 file_handlers_info_ = file_handlers_info; |
564 } | 564 } |
OLD | NEW |