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

Unified Diff: components/favicon/content/favicon_url_util.cc

Issue 2918903002: Move IconURLs method from WebFrame to WebLocalFrame (Closed)
Patch Set: Simplify unit test changes to avoid UaF from previous patchset. Created 3 years, 6 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/favicon/content/favicon_url_util.cc
diff --git a/components/favicon/content/favicon_url_util.cc b/components/favicon/content/favicon_url_util.cc
index c77ff8b7808453325ec5446d51b8cb42206297e7..a0bb2065a902c25212dacc2186154dbd8e33c36f 100644
--- a/components/favicon/content/favicon_url_util.cc
+++ b/components/favicon/content/favicon_url_util.cc
@@ -25,9 +25,10 @@ favicon_base::IconType IconTypeFromContentIconType(
return favicon_base::TOUCH_PRECOMPOSED_ICON;
case content::FaviconURL::INVALID_ICON:
return favicon_base::INVALID_ICON;
+ default:
dcheng 2017/06/06 20:01:30 Nit: prefer to keep this out of the switch stateme
Łukasz Anforowicz 2017/06/06 20:55:00 Thanks for bringing this up. I moved this in, bec
+ NOTREACHED();
+ return favicon_base::INVALID_ICON;
}
- NOTREACHED();
- return favicon_base::INVALID_ICON;
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698