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

Side by Side Diff: chrome/browser/ui/views/create_application_shortcut_view.cc

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 #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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698