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

Unified Diff: extensions/renderer/bindings/api_binding_util.h

Issue 2967443004: [Extensions Bindings] Fix getPlatform() method (Closed)
Patch Set: Rebase Created 3 years, 5 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/renderer/bindings/api_binding_util.h
diff --git a/extensions/renderer/bindings/api_binding_util.h b/extensions/renderer/bindings/api_binding_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..10f95a3bd1f23644e59848d969e16314d9f0afcd
--- /dev/null
+++ b/extensions/renderer/bindings/api_binding_util.h
@@ -0,0 +1,20 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef EXTENSIONS_RENDERER_BINDING_API_BINDING_UTIL_H_
+#define EXTENSIONS_RENDERER_BINDING_API_BINDING_UTIL_H_
+
+#include <string>
+
+namespace extensions {
+namespace binding {
+
+// Returns the string version of the current platform, one of "chromeos",
+// "linux", "win", or "mac".
+std::string GetPlatformString();
+
+} // namespace binding
+} // namespace extensions
+
+#endif // EXTENSIONS_RENDERER_BINDING_API_BINDING_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698