OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "base/compiler_specific.h" | 5 #include "base/compiler_specific.h" |
6 #include "base/string_util.h" | 6 #include "base/string_util.h" |
7 #include "base/waitable_event.h" | |
8 #include "chrome/browser/app_modal_dialog.h" | 7 #include "chrome/browser/app_modal_dialog.h" |
9 #include "chrome/browser/browser.h" | 8 #include "chrome/browser/browser.h" |
10 #include "chrome/browser/browser_list.h" | 9 #include "chrome/browser/browser_list.h" |
11 #include "chrome/browser/chrome_thread.h" | 10 #include "chrome/browser/chrome_thread.h" |
12 #include "chrome/browser/dom_operation_notification_details.h" | 11 #include "chrome/browser/dom_operation_notification_details.h" |
13 #include "chrome/browser/geolocation/geolocation_content_settings_map.h" | 12 #include "chrome/browser/geolocation/geolocation_content_settings_map.h" |
14 #include "chrome/browser/geolocation/geolocation_settings_state.h" | 13 #include "chrome/browser/geolocation/geolocation_settings_state.h" |
15 #include "chrome/browser/geolocation/location_arbitrator.h" | 14 #include "chrome/browser/geolocation/location_arbitrator.h" |
16 #include "chrome/browser/geolocation/location_provider.h" | 15 #include "chrome/browser/geolocation/location_provider.h" |
17 #include "chrome/browser/geolocation/mock_location_provider.h" | 16 #include "chrome/browser/geolocation/mock_location_provider.h" |
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 SetInfobarResponse(current_url_, true); | 576 SetInfobarResponse(current_url_, true); |
578 CheckGeoposition(MockLocationProvider::instance_->position_); | 577 CheckGeoposition(MockLocationProvider::instance_->position_); |
579 | 578 |
580 // The second watch will now have cancelled. Ensure an update still makes | 579 // The second watch will now have cancelled. Ensure an update still makes |
581 // its way through to the first watcher. | 580 // its way through to the first watcher. |
582 ChromeThread::PostTask(ChromeThread::IO, FROM_HERE, NewRunnableFunction( | 581 ChromeThread::PostTask(ChromeThread::IO, FROM_HERE, NewRunnableFunction( |
583 &NotifyGeopositionOnIOThread, final_position)); | 582 &NotifyGeopositionOnIOThread, final_position)); |
584 WaitForJSPrompt(); | 583 WaitForJSPrompt(); |
585 CheckGeoposition(final_position); | 584 CheckGeoposition(final_position); |
586 } | 585 } |
OLD | NEW |