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

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

Issue 18120005: Remove Google Toolbar importer (aka google.com/bookmarks importer). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: -explicit Created 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/first_run/first_run.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 3260 matching lines...) Expand 10 before | Expand all | Expand 10 after
3271 AutomationJSONReply(this, reply_message) 3271 AutomationJSONReply(this, reply_message)
3272 .SendError("Invalid item string found in import_items."); 3272 .SendError("Invalid item string found in import_items.");
3273 return; 3273 return;
3274 } 3274 }
3275 import_settings_data_.import_items |= string_to_import_item[item]; 3275 import_settings_data_.import_items |= string_to_import_item[item];
3276 } 3276 }
3277 3277
3278 import_settings_data_.browser = browser; 3278 import_settings_data_.browser = browser;
3279 import_settings_data_.reply_message = reply_message; 3279 import_settings_data_.reply_message = reply_message;
3280 3280
3281 importer_list_ = new ImporterList(NULL); 3281 importer_list_ = new ImporterList();
3282 importer_list_->DetectSourceProfiles("en-US", this); 3282 importer_list_->DetectSourceProfiles("en-US", this);
3283 } 3283 }
3284 3284
3285 namespace { 3285 namespace {
3286 3286
3287 // Translates a dictionary password to a PasswordForm struct. 3287 // Translates a dictionary password to a PasswordForm struct.
3288 content::PasswordForm GetPasswordFormFromDict( 3288 content::PasswordForm GetPasswordFormFromDict(
3289 const DictionaryValue& password_dict) { 3289 const DictionaryValue& password_dict) {
3290 3290
3291 // If the time is specified, change time to the specified time. 3291 // If the time is specified, change time to the specified time.
(...skipping 2401 matching lines...) Expand 10 before | Expand all | Expand 10 after
5693 if (g_browser_process) 5693 if (g_browser_process)
5694 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); 5694 g_browser_process->GetAutomationProviderList()->RemoveProvider(this);
5695 } 5695 }
5696 5696
5697 void TestingAutomationProvider::EnsureTabSelected(Browser* browser, 5697 void TestingAutomationProvider::EnsureTabSelected(Browser* browser,
5698 WebContents* tab) { 5698 WebContents* tab) {
5699 TabStripModel* tab_strip = browser->tab_strip_model(); 5699 TabStripModel* tab_strip = browser->tab_strip_model();
5700 if (tab_strip->GetActiveWebContents() != tab) 5700 if (tab_strip->GetActiveWebContents() != tab)
5701 tab_strip->ActivateTabAt(tab_strip->GetIndexOfWebContents(tab), true); 5701 tab_strip->ActivateTabAt(tab_strip->GetIndexOfWebContents(tab), true);
5702 } 5702 }
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/first_run/first_run.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698