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

Side by Side Diff: third_party/WebKit/Source/modules/installation/InstallationServiceImpl.cpp

Issue 2379923002: Implement "appinstalled" event on Android. (Closed)
Patch Set: Respond to review / fix compile. Created 4 years 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "modules/installation/InstallationServiceImpl.h"
6
7 #include "core/frame/LocalFrame.h"
8 #include "mojo/public/cpp/bindings/strong_binding.h"
9 #include "wtf/PtrUtil.h"
10 #include <utility>
11
12 namespace blink {
13
14 InstallationServiceImpl::InstallationServiceImpl(LocalFrame* frame)
15 : m_frame(frame) {}
16
17 // static
18 void InstallationServiceImpl::create(
19 LocalFrame* frame,
20 mojom::blink::InstallationServiceRequest request) {
21 mojo::MakeStrongBinding(WTF::makeUnique<InstallationServiceImpl>(frame),
22 std::move(request));
23 }
24
25 void InstallationServiceImpl::OnInstall() {
26 m_frame->onAppInstalled();
dominickn 2016/12/12 05:03:30 Instead of adding to LocalFrame's API, can you do
Matt Giuca 2016/12/14 03:39:40 Done. I think I did that because InstallationServi
27 }
28
29 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698