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

Unified Diff: extensions/browser/api/vpn_provider/vpn_service.h

Issue 1014053002: Provide warning message for setParameters (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Print only when there is a warning and fix unittest error Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: extensions/browser/api/vpn_provider/vpn_service.h
diff --git a/extensions/browser/api/vpn_provider/vpn_service.h b/extensions/browser/api/vpn_provider/vpn_service.h
index 96bca6eb45d8ccda8db622bd5d69b338d70d3f07..25e93172aa837de0265630cd8c189e3e66da86d6 100644
--- a/extensions/browser/api/vpn_provider/vpn_service.h
+++ b/extensions/browser/api/vpn_provider/vpn_service.h
@@ -53,6 +53,7 @@ class VpnService : public KeyedService,
public extensions::ExtensionRegistryObserver {
public:
using SuccessCallback = base::Closure;
+ using StringCallback = base::Callback<void(const std::string& result)>;
using FailureCallback =
base::Callback<void(const std::string& error_name,
const std::string& error_message)>;
@@ -126,7 +127,7 @@ class VpnService : public KeyedService,
// Calls |success| or |failure| based on the outcome.
void SetParameters(const std::string& extension_id,
const base::DictionaryValue& parameters,
- const SuccessCallback& success,
+ const StringCallback& success,
const FailureCallback& failure);
// Sends an IP packet contained in |data| to the active VPN configuration

Powered by Google App Engine
This is Rietveld 408576698