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

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

Issue 2721553002: Make web_app::ShortcutInfo RefCountedThreadSafe (1) (Closed)
Patch Set: TestBrowserThreadBundle for mac test fix Created 3 years, 9 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 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698