Commit bfd2a9f6 authored by Miguel Flores Ruiz de Eguino's avatar Miguel Flores Ruiz de Eguino Committed by Commit Bot

[webrunner] Fix LogLevel enum type uint32 -> int32

R=jamesr@google.com, kmarshall@chromium.org

Change-Id: I7ac18724e08194d45686c3f694c09d69db9025dd
Reviewed-on: https://chromium-review.googlesource.com/c/1352528
Commit-Queue: Miguel Flores <miguelfrde@google.com>
Reviewed-by: default avatarJames Robinson <jamesr@chromium.org>
Reviewed-by: default avatarKevin Marshall <kmarshall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#611423}
parent f9499ac6
...@@ -432,7 +432,7 @@ bool FrameImpl::DidAddMessageToConsole(content::WebContents* source, ...@@ -432,7 +432,7 @@ bool FrameImpl::DidAddMessageToConsole(content::WebContents* source,
int32_t line_no, int32_t line_no,
const base::string16& source_id) { const base::string16& source_id) {
if (static_cast<std::underlying_type<chromium::web::LogLevel>::type>( if (static_cast<std::underlying_type<chromium::web::LogLevel>::type>(
log_level_) > static_cast<uint32_t>(level)) { log_level_) > level) {
return false; return false;
} }
......
...@@ -13,7 +13,7 @@ enum ExecuteMode { ...@@ -13,7 +13,7 @@ enum ExecuteMode {
ON_PAGE_LOAD = 2; // Will evaluate the script on all subsequent page loads. ON_PAGE_LOAD = 2; // Will evaluate the script on all subsequent page loads.
}; };
enum LogLevel { enum LogLevel : int32 {
NONE = 100; // No logging. NONE = 100; // No logging.
DEBUG = -1; // Outputs messages from console.debug(). DEBUG = -1; // Outputs messages from console.debug().
INFO = 0; // Outputs messages from console.log(). INFO = 0; // Outputs messages from console.log().
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment