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

Side by Side Diff: content/browser/presentation/presentation_service_impl.cc

Issue 2062333002: mojo::Callback -> base::Callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "content/browser/presentation/presentation_service_impl.h" 5 #include "content/browser/presentation/presentation_service_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <algorithm> 9 #include <algorithm>
10 #include <string> 10 #include <string>
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 ::~NewSessionMojoCallbackWrapper() { 599 ::~NewSessionMojoCallbackWrapper() {
600 if (!callback_.is_null()) 600 if (!callback_.is_null())
601 InvokeNewSessionMojoCallbackWithError(callback_); 601 InvokeNewSessionMojoCallbackWithError(callback_);
602 } 602 }
603 603
604 void PresentationServiceImpl::NewSessionMojoCallbackWrapper::Run( 604 void PresentationServiceImpl::NewSessionMojoCallbackWrapper::Run(
605 blink::mojom::PresentationSessionInfoPtr session, 605 blink::mojom::PresentationSessionInfoPtr session,
606 blink::mojom::PresentationErrorPtr error) { 606 blink::mojom::PresentationErrorPtr error) {
607 DCHECK(!callback_.is_null()); 607 DCHECK(!callback_.is_null());
608 callback_.Run(std::move(session), std::move(error)); 608 callback_.Run(std::move(session), std::move(error));
609 callback_.reset(); 609 callback_.Reset();
610 } 610 }
611 611
612 } // namespace content 612 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698