| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/automation/testing_automation_provider.h" | 5 #include "chrome/browser/automation/testing_automation_provider.h" |
| 6 | 6 |
| 7 #include "app/message_box_flags.h" | 7 #include "app/message_box_flags.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/json/json_reader.h" | 9 #include "base/json/json_reader.h" |
| 10 #include "base/json/json_writer.h" | 10 #include "base/json/json_writer.h" |
| 11 #include "base/json/string_escape.h" | 11 #include "base/json/string_escape.h" |
| 12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
| 13 #include "base/process.h" | 13 #include "base/process.h" |
| 14 #include "base/process_util.h" | 14 #include "base/process_util.h" |
| 15 #include "base/stringprintf.h" | 15 #include "base/stringprintf.h" |
| 16 #include "base/thread_restrictions.h" | 16 #include "base/threading/thread_restrictions.h" |
| 17 #include "base/time.h" | 17 #include "base/time.h" |
| 18 #include "base/utf_string_conversions.h" | 18 #include "base/utf_string_conversions.h" |
| 19 #include "chrome/app/chrome_command_ids.h" | 19 #include "chrome/app/chrome_command_ids.h" |
| 20 #include "chrome/browser/autocomplete/autocomplete.h" | 20 #include "chrome/browser/autocomplete/autocomplete.h" |
| 21 #include "chrome/browser/autocomplete/autocomplete_edit.h" | 21 #include "chrome/browser/autocomplete/autocomplete_edit.h" |
| 22 #include "chrome/browser/autocomplete/autocomplete_match.h" | 22 #include "chrome/browser/autocomplete/autocomplete_match.h" |
| 23 #include "chrome/browser/autofill/autofill_manager.h" | 23 #include "chrome/browser/autofill/autofill_manager.h" |
| 24 #include "chrome/browser/automation/automation_autocomplete_edit_tracker.h" | 24 #include "chrome/browser/automation/automation_autocomplete_edit_tracker.h" |
| 25 #include "chrome/browser/automation/automation_browser_tracker.h" | 25 #include "chrome/browser/automation/automation_browser_tracker.h" |
| 26 #include "chrome/browser/automation/automation_provider_json.h" | 26 #include "chrome/browser/automation/automation_provider_json.h" |
| (...skipping 4471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4498 // If you change this, update Observer for NotificationType::SESSION_END | 4498 // If you change this, update Observer for NotificationType::SESSION_END |
| 4499 // below. | 4499 // below. |
| 4500 MessageLoop::current()->PostTask(FROM_HERE, | 4500 MessageLoop::current()->PostTask(FROM_HERE, |
| 4501 NewRunnableMethod(this, &TestingAutomationProvider::OnRemoveProvider)); | 4501 NewRunnableMethod(this, &TestingAutomationProvider::OnRemoveProvider)); |
| 4502 } | 4502 } |
| 4503 } | 4503 } |
| 4504 | 4504 |
| 4505 void TestingAutomationProvider::OnRemoveProvider() { | 4505 void TestingAutomationProvider::OnRemoveProvider() { |
| 4506 AutomationProviderList::GetInstance()->RemoveProvider(this); | 4506 AutomationProviderList::GetInstance()->RemoveProvider(this); |
| 4507 } | 4507 } |
| OLD | NEW |