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

Unified Diff: chrome/test/chromedriver/chrome/automation_extension.cc

Issue 377683002: Fixes for re-enabling more MSVC level 4 warnings: chrome/ edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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: chrome/test/chromedriver/chrome/automation_extension.cc
diff --git a/chrome/test/chromedriver/chrome/automation_extension.cc b/chrome/test/chromedriver/chrome/automation_extension.cc
index 9318930006ed3bda4b9869fcbea5dba99f66e822..2aa4d22a0ae1d945e50d3f0599ded5fc0e482f68 100644
--- a/chrome/test/chromedriver/chrome/automation_extension.cc
+++ b/chrome/test/chromedriver/chrome/automation_extension.cc
@@ -76,8 +76,11 @@ Status AutomationExtension::GetWindowInfo(int* x,
if (status.IsError())
return status;
- int temp_x, temp_y, temp_width, temp_height;
base::DictionaryValue* dict;
+ int temp_x = 0;
+ int temp_y = 0;
+ int temp_width = 0;
+ int temp_height = 0;
if (!result->GetAsDictionary(&dict) ||
!dict->GetInteger("left", &temp_x) ||
!dict->GetInteger("top", &temp_y) ||

Powered by Google App Engine
This is Rietveld 408576698