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

Unified Diff: chrome/browser/extensions/api/media_galleries_private/gallery_watch_state_tracker.cc

Issue 202993002: Fix "unreachable code" warnings (MSVC warning 4702) in chrome/browser/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 9 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
« no previous file with comments | « chrome/browser/extensions/api/input/input.cc ('k') | chrome/browser/lifetime/application_lifetime_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/media_galleries_private/gallery_watch_state_tracker.cc
===================================================================
--- chrome/browser/extensions/api/media_galleries_private/gallery_watch_state_tracker.cc (revision 256983)
+++ chrome/browser/extensions/api/media_galleries_private/gallery_watch_state_tracker.cc (working copy)
@@ -103,9 +103,9 @@
DCHECK(profile);
MediaGalleriesPrivateAPI* private_api =
MediaGalleriesPrivateAPI::Get(profile);
- if (!private_api)
- return NULL; // In unit tests, we don't have a MediaGalleriesPrivateAPI.
- return private_api->GetGalleryWatchStateTracker();
+ // In unit tests, we don't have a MediaGalleriesPrivateAPI.
+ if (private_api)
+ return private_api->GetGalleryWatchStateTracker();
#endif
return NULL;
}
« no previous file with comments | « chrome/browser/extensions/api/input/input.cc ('k') | chrome/browser/lifetime/application_lifetime_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698