Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(269)

Side by Side Diff: chrome/browser/automation/automation_provider.cc

Issue 2823046: Fix for pyauto AutoFill tests on Leopard. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698