| 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 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 return CreateApplicationShortcutView::Accept(); | 535 return CreateApplicationShortcutView::Accept(); |
| 536 } | 536 } |
| 537 | 537 |
| 538 bool CreateChromeApplicationShortcutView::Cancel() { | 538 bool CreateChromeApplicationShortcutView::Cancel() { |
| 539 if (!close_callback_.is_null()) | 539 if (!close_callback_.is_null()) |
| 540 close_callback_.Run(false); | 540 close_callback_.Run(false); |
| 541 return CreateApplicationShortcutView::Cancel(); | 541 return CreateApplicationShortcutView::Cancel(); |
| 542 } | 542 } |
| 543 | 543 |
| 544 void CreateChromeApplicationShortcutView::OnAppInfoLoaded( | 544 void CreateChromeApplicationShortcutView::OnAppInfoLoaded( |
| 545 std::unique_ptr<web_app::ShortcutInfo> shortcut_info) { | 545 scoped_refptr<web_app::ShortcutInfo> shortcut_info) { |
| 546 shortcut_info_ = std::move(shortcut_info); | 546 shortcut_info_ = std::move(shortcut_info); |
| 547 } | 547 } |
| OLD | NEW |