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

Unified Diff: components/search_engines/template_url_prepopulate_data.cc

Issue 371113002: Fixes for re-enabling more MSVC level 4 warnings: components/ edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Attempt to fix compile failure 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: components/search_engines/template_url_prepopulate_data.cc
diff --git a/components/search_engines/template_url_prepopulate_data.cc b/components/search_engines/template_url_prepopulate_data.cc
index 9d6d72ae485af283a8feb7e2e87c8fa15a4d3038..e63a58c0cb62097a8d54a21ea9e8078818acac7e 100644
--- a/components/search_engines/template_url_prepopulate_data.cc
+++ b/components/search_engines/template_url_prepopulate_data.cc
@@ -1100,7 +1100,7 @@ ScopedVector<TemplateURLData> GetPrepopulatedTemplateURLData(
std::string search_url;
std::string favicon_url;
std::string encoding;
- int id;
+ int id = -1;
// The following fields are required for each search engine configuration.
if (list->GetDictionary(i, &engine) &&
engine->GetString("name", &name) && !name.empty() &&
« no previous file with comments | « components/search_engines/template_url.cc ('k') | components/translate/core/browser/translate_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698