diff options
Diffstat (limited to 'chromium/content/public/browser/web_ui.h')
-rw-r--r-- | chromium/content/public/browser/web_ui.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/chromium/content/public/browser/web_ui.h b/chromium/content/public/browser/web_ui.h index 4e6aa0e28d9..fa6f10c1bff 100644 --- a/chromium/content/public/browser/web_ui.h +++ b/chromium/content/public/browser/web_ui.h @@ -138,22 +138,6 @@ class CONTENT_EXPORT WebUI { template <typename T> static T GetValue(const base::Value& value); - template <> - inline bool GetValue<bool>(const base::Value& value) { - return value.GetBool(); - } - - template <> - inline int GetValue<int>(const base::Value& value) { - return value.GetInt(); - } - - template <> - inline const std::string& GetValue<const std::string&>( - const base::Value& value) { - return value.GetString(); - } - template <typename Is, typename... Args> struct Call; @@ -169,6 +153,22 @@ class CONTENT_EXPORT WebUI { }; }; +template <> +inline bool WebUI::GetValue<bool>(const base::Value& value) { + return value.GetBool(); +} + +template <> +inline int WebUI::GetValue<int>(const base::Value& value) { + return value.GetInt(); +} + +template <> +inline const std::string& WebUI::GetValue<const std::string&>( + const base::Value& value) { + return value.GetString(); +} + } // namespace content #endif // CONTENT_PUBLIC_BROWSER_WEB_UI_H_ |