Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
| OLD | NEW |