| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/extensions/api/location/location_api.h" | 5 #include "chrome/browser/extensions/api/location/location_api.h" |
| 6 | 6 |
| 7 #include "chrome/browser/extensions/api/location/location_manager.h" | 7 #include "chrome/browser/extensions/api/location/location_manager.h" |
| 8 #include "chrome/browser/profiles/profile.h" |
| 8 #include "chrome/common/extensions/api/location.h" | 9 #include "chrome/common/extensions/api/location.h" |
| 9 #include "extensions/common/error_utils.h" | 10 #include "extensions/common/error_utils.h" |
| 10 | 11 |
| 11 // TODO(vadimt): add tests. | 12 // TODO(vadimt): add tests. |
| 12 | 13 |
| 13 namespace location = extensions::api::location; | 14 namespace location = extensions::api::location; |
| 14 namespace WatchLocation = location::WatchLocation; | 15 namespace WatchLocation = location::WatchLocation; |
| 15 namespace ClearWatch = location::ClearWatch; | 16 namespace ClearWatch = location::ClearWatch; |
| 16 | 17 |
| 17 namespace extensions { | 18 namespace extensions { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 ClearWatch::Params::Create(*args_)); | 63 ClearWatch::Params::Create(*args_)); |
| 63 EXTENSION_FUNCTION_VALIDATE(params.get()); | 64 EXTENSION_FUNCTION_VALIDATE(params.get()); |
| 64 | 65 |
| 65 LocationManager::Get(GetProfile()) | 66 LocationManager::Get(GetProfile()) |
| 66 ->RemoveLocationRequest(extension_id(), params->name); | 67 ->RemoveLocationRequest(extension_id(), params->name); |
| 67 | 68 |
| 68 return true; | 69 return true; |
| 69 } | 70 } |
| 70 | 71 |
| 71 } // namespace extensions | 72 } // namespace extensions |
| OLD | NEW |