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/automation_provider.h" | 5 #include "chrome/browser/automation/automation_provider.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "app/message_box_flags.h" | 9 #include "app/message_box_flags.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/file_path.h" | 11 #include "base/file_path.h" |
12 #include "base/file_version_info.h" | 12 #include "base/file_version_info.h" |
13 #include "base/json/json_reader.h" | 13 #include "base/json/json_reader.h" |
14 #include "base/json/json_writer.h" | 14 #include "base/json/json_writer.h" |
15 #include "base/json/string_escape.h" | 15 #include "base/json/string_escape.h" |
16 #include "base/keyboard_codes.h" | 16 #include "base/keyboard_codes.h" |
17 #include "base/message_loop.h" | 17 #include "base/message_loop.h" |
18 #include "base/path_service.h" | 18 #include "base/path_service.h" |
19 #include "base/process_util.h" | 19 #include "base/process_util.h" |
20 #include "base/stl_util-inl.h" | 20 #include "base/stl_util-inl.h" |
21 #include "base/string_util.h" | 21 #include "base/string_util.h" |
22 #include "base/task.h" | 22 #include "base/task.h" |
23 #include "base/thread.h" | 23 #include "base/thread.h" |
| 24 #include "base/string_number_conversions.h" |
24 #include "base/utf_string_conversions.h" | 25 #include "base/utf_string_conversions.h" |
25 #include "base/values.h" | 26 #include "base/values.h" |
26 #include "base/waitable_event.h" | 27 #include "base/waitable_event.h" |
27 #include "chrome/app/chrome_dll_resource.h" | 28 #include "chrome/app/chrome_dll_resource.h" |
28 #include "chrome/browser/app_modal_dialog.h" | 29 #include "chrome/browser/app_modal_dialog.h" |
29 #include "chrome/browser/app_modal_dialog_queue.h" | 30 #include "chrome/browser/app_modal_dialog_queue.h" |
30 #include "chrome/browser/autofill/autofill_manager.h" | 31 #include "chrome/browser/autofill/autofill_manager.h" |
31 #include "chrome/browser/automation/automation_autocomplete_edit_tracker.h" | 32 #include "chrome/browser/automation/automation_autocomplete_edit_tracker.h" |
32 #include "chrome/browser/automation/automation_browser_tracker.h" | 33 #include "chrome/browser/automation/automation_browser_tracker.h" |
33 #include "chrome/browser/automation/automation_extension_tracker.h" | 34 #include "chrome/browser/automation/automation_extension_tracker.h" |
(...skipping 4293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4327 // and it is not incognito-enabled. | 4328 // and it is not incognito-enabled. |
4328 if (profile_->IsOffTheRecord() && | 4329 if (profile_->IsOffTheRecord() && |
4329 !service->IsIncognitoEnabled(*iter)) | 4330 !service->IsIncognitoEnabled(*iter)) |
4330 continue; | 4331 continue; |
4331 if (*iter == extension) { | 4332 if (*iter == extension) { |
4332 found_index = index; | 4333 found_index = index; |
4333 break; | 4334 break; |
4334 } | 4335 } |
4335 index++; | 4336 index++; |
4336 } | 4337 } |
4337 *value = IntToString(found_index); | 4338 *value = base::IntToString(found_index); |
4338 *success = true; | 4339 *success = true; |
4339 } | 4340 } |
4340 break; | 4341 break; |
4341 default: | 4342 default: |
4342 LOG(WARNING) << "Trying to get undefined extension property"; | 4343 LOG(WARNING) << "Trying to get undefined extension property"; |
4343 break; | 4344 break; |
4344 } | 4345 } |
4345 } | 4346 } |
4346 } | 4347 } |
4347 | 4348 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4389 } | 4390 } |
4390 | 4391 |
4391 void AutomationProvider::WaitForPopupMenuToOpen(IPC::Message* reply_message) { | 4392 void AutomationProvider::WaitForPopupMenuToOpen(IPC::Message* reply_message) { |
4392 NOTIMPLEMENTED(); | 4393 NOTIMPLEMENTED(); |
4393 } | 4394 } |
4394 #endif // !defined(TOOLKIT_VIEWS) | 4395 #endif // !defined(TOOLKIT_VIEWS) |
4395 | 4396 |
4396 void AutomationProvider::ResetToDefaultTheme() { | 4397 void AutomationProvider::ResetToDefaultTheme() { |
4397 profile_->ClearTheme(); | 4398 profile_->ClearTheme(); |
4398 } | 4399 } |
OLD | NEW |