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

Side by Side Diff: mojo/shell/public/cpp/lib/app_lifetime_helper.cc

Issue 1565343003: Move mojo/application/public -> mojo/shell/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fetcher
Patch Set: . Created 4 years, 11 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 "mojo/application/public/cpp/app_lifetime_helper.h" 5 #include "mojo/shell/public/cpp/app_lifetime_helper.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "mojo/application/public/cpp/application_impl.h" 9 #include "mojo/shell/public/cpp/application_impl.h"
10 10
11 namespace mojo { 11 namespace mojo {
12 12
13 AppRefCount::AppRefCount( 13 AppRefCount::AppRefCount(
14 AppLifetimeHelper* app_lifetime_helper, 14 AppLifetimeHelper* app_lifetime_helper,
15 scoped_refptr<base::SingleThreadTaskRunner> app_task_runner) 15 scoped_refptr<base::SingleThreadTaskRunner> app_task_runner)
16 : app_lifetime_helper_(app_lifetime_helper), 16 : app_lifetime_helper_(app_lifetime_helper),
17 app_task_runner_(app_task_runner) { 17 app_task_runner_(app_task_runner) {
18 } 18 }
19 19
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 if (app_) 85 if (app_)
86 app_->Quit(); 86 app_->Quit();
87 } 87 }
88 } 88 }
89 89
90 void AppLifetimeHelper::OnQuit() { 90 void AppLifetimeHelper::OnQuit() {
91 app_ = nullptr; 91 app_ = nullptr;
92 } 92 }
93 93
94 } // namespace mojo 94 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/shell/public/cpp/lazy_interface_ptr.h ('k') | mojo/shell/public/cpp/lib/application_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698