| 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/l10n_util.h" | 9 #include "app/l10n_util.h" |
| 10 #include "app/message_box_flags.h" | 10 #include "app/message_box_flags.h" |
| (...skipping 2554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2565 reply.SendError(error_mesg); | 2565 reply.SendError(error_mesg); |
| 2566 return; | 2566 return; |
| 2567 } | 2567 } |
| 2568 | 2568 |
| 2569 // Save the AutoFillProfiles. | 2569 // Save the AutoFillProfiles. |
| 2570 int tab_index = 0; | 2570 int tab_index = 0; |
| 2571 args->GetInteger(L"tab_index", &tab_index); | 2571 args->GetInteger(L"tab_index", &tab_index); |
| 2572 TabContents* tab_contents = browser->GetTabContentsAt(tab_index); | 2572 TabContents* tab_contents = browser->GetTabContentsAt(tab_index); |
| 2573 | 2573 |
| 2574 if (tab_contents) { | 2574 if (tab_contents) { |
| 2575 PersonalDataManager* pdm = tab_contents->profile()->GetOriginalProfile() | 2575 PersonalDataManager* pdm = tab_contents->profile() |
| 2576 ->GetPersonalDataManager(); | 2576 ->GetPersonalDataManager(); |
| 2577 if (pdm) { | 2577 if (pdm) { |
| 2578 pdm->OnAutoFillDialogApply(profiles? &autofill_profiles : NULL, | 2578 pdm->OnAutoFillDialogApply(profiles? &autofill_profiles : NULL, |
| 2579 cards? &credit_cards : NULL); | 2579 cards? &credit_cards : NULL); |
| 2580 } else { | 2580 } else { |
| 2581 reply.SendError("No PersonalDataManager."); | 2581 reply.SendError("No PersonalDataManager."); |
| 2582 return; | 2582 return; |
| 2583 } | 2583 } |
| 2584 } else { | 2584 } else { |
| 2585 reply.SendError("No tab at that index."); | 2585 reply.SendError("No tab at that index."); |
| (...skipping 1411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3997 } | 3997 } |
| 3998 | 3998 |
| 3999 void AutomationProvider::WaitForPopupMenuToOpen(IPC::Message* reply_message) { | 3999 void AutomationProvider::WaitForPopupMenuToOpen(IPC::Message* reply_message) { |
| 4000 NOTIMPLEMENTED(); | 4000 NOTIMPLEMENTED(); |
| 4001 } | 4001 } |
| 4002 #endif // !defined(TOOLKIT_VIEWS) | 4002 #endif // !defined(TOOLKIT_VIEWS) |
| 4003 | 4003 |
| 4004 void AutomationProvider::ResetToDefaultTheme() { | 4004 void AutomationProvider::ResetToDefaultTheme() { |
| 4005 profile_->ClearTheme(); | 4005 profile_->ClearTheme(); |
| 4006 } | 4006 } |
| OLD | NEW |