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

Unified Diff: content/browser/geolocation/gps_location_provider_linux.cc

Issue 11339014: Move content\browser\renderer_host\media to content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 2 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: content/browser/geolocation/gps_location_provider_linux.cc
===================================================================
--- content/browser/geolocation/gps_location_provider_linux.cc (revision 164646)
+++ content/browser/geolocation/gps_location_provider_linux.cc (working copy)
@@ -144,9 +144,9 @@
is_open_ = false;
}
-bool LibGps::Read(content::Geoposition* position) {
+bool LibGps::Read(Geoposition* position) {
DCHECK(position);
- position->error_code = content::Geoposition::ERROR_CODE_POSITION_UNAVAILABLE;
+ position->error_code = Geoposition::ERROR_CODE_POSITION_UNAVAILABLE;
if (!is_open_) {
DLOG(WARNING) << "No gpsd connection";
position->error_message = "No gpsd connection";
@@ -165,7 +165,7 @@
return false;
}
- position->error_code = content::Geoposition::ERROR_CODE_NONE;
+ position->error_code = Geoposition::ERROR_CODE_NONE;
position->timestamp = base::Time::Now();
if (!position->Validate()) {
// GetPositionIfFixed returned true, yet we've not got a valid fix.
@@ -174,15 +174,14 @@
<< position->latitude << "," << position->longitude
<< " accuracy " << position->accuracy << " time "
<< position->timestamp.ToDoubleT();
- position->error_code =
- content::Geoposition::ERROR_CODE_POSITION_UNAVAILABLE;
+ position->error_code = Geoposition::ERROR_CODE_POSITION_UNAVAILABLE;
position->error_message = "Bad fix from gps";
return false;
}
return true;
}
-bool LibGps::GetPositionIfFixed(content::Geoposition* position) {
+bool LibGps::GetPositionIfFixed(Geoposition* position) {
DCHECK(position);
if (gps_data_->status == STATUS_NO_FIX) {
DVLOG(2) << "Status_NO_FIX";
@@ -245,11 +244,11 @@
void LibGps::Stop() {
}
-bool LibGps::Read(content::Geoposition* position) {
+bool LibGps::Read(Geoposition* position) {
return false;
}
-bool LibGps::GetPositionIfFixed(content::Geoposition* position) {
+bool LibGps::GetPositionIfFixed(Geoposition* position) {
return false;
}

Powered by Google App Engine
This is Rietveld 408576698