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

Unified Diff: Source/modules/geolocation/GeoNotifier.cpp

Issue 402483003: Remove never reached area in GeoNotifier (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@remove_circular
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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/geolocation/GeoNotifier.cpp
diff --git a/Source/modules/geolocation/GeoNotifier.cpp b/Source/modules/geolocation/GeoNotifier.cpp
index c877287ebb4120959cef04f035ddd49f3c10357d..3d733279fd7342fbd4f1523b2311e23fc901ec9a 100644
--- a/Source/modules/geolocation/GeoNotifier.cpp
+++ b/Source/modules/geolocation/GeoNotifier.cpp
@@ -56,11 +56,6 @@ void GeoNotifier::setUseCachedPosition()
void GeoNotifier::runSuccessCallback(Geoposition* position)
{
- // If we are here and the Geolocation permission is not approved, something has
- // gone horribly wrong.
- if (!m_geolocation->isAllowed())
- CRASH();
Michael van Ouwerkerk 2014/07/17 10:15:00 I'd have prefered to just replace this with ASSERT
kihong 2014/07/17 11:47:55 There are only two way to get here.(from makeCache
Michael van Ouwerkerk 2014/07/17 12:15:34 Your change is correct. If the purpose is the brea
kihong 2014/07/17 12:21:10 I got it and thanks for your kind reviewing. :)
-
m_successCallback->handleEvent(position);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698