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

Side by Side Diff: chrome/browser/extensions/api/developer_private/developer_private_mojo.cc

Issue 2074263002: [Experimental] Fool around with exposing extension bindings via blink Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
(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 "chrome/browser/extensions/api/developer_private/developer_private_mojo .h"
6
7 #include "chrome/browser/extensions/api/developer_private/developer_private_api. h"
8
9 namespace extensions {
10
11 DeveloperPrivateMojo::DeveloperPrivateMojo(
12 mojo::InterfaceRequest<mojom::DeveloperPrivate> request,
13 content::BrowserContext* browser_context)
14 : binding_(this, std::move(request)), browser_context_(browser_context) {}
15
16 DeveloperPrivateMojo::~DeveloperPrivateMojo() {}
17
18 void DeveloperPrivateMojo::UpdateExtensionConfiguration(
19 bool is_user_gesture,
20 mojom::UpdateExtensionConfigurationParamsPtr params,
21 const UpdateExtensionConfigurationCallback& callback) {
Ken Rockot(use gerrit already) 2016/06/20 17:19:24 Why not just implement the function here and run t
22 scoped_refptr<api::DeveloperPrivateUpdateExtensionConfigurationFunction>
23 function(new api::DeveloperPrivateUpdateExtensionConfigurationFunction(
24 callback));
25 function->set_browser_context(browser_context_);
26 function->set_user_gesture(is_user_gesture);
27 function->Run(std::move(params));
28 }
29
30 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698