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

Side by Side Diff: chrome/browser/ui/webui/options/import_data_handler.cc

Issue 1290183002: Drop an obsolete Keychain disclaimer in the import dialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 | « chrome/browser/resources/options/import_data_overlay.js ('k') | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/ui/webui/options/import_data_handler.h" 5 #include "chrome/browser/ui/webui/options/import_data_handler.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 {"importHistory", IDS_IMPORT_HISTORY_CHKBOX}, 61 {"importHistory", IDS_IMPORT_HISTORY_CHKBOX},
62 {"importFavorites", IDS_IMPORT_FAVORITES_CHKBOX}, 62 {"importFavorites", IDS_IMPORT_FAVORITES_CHKBOX},
63 {"importSearch", IDS_IMPORT_SEARCH_ENGINES_CHKBOX}, 63 {"importSearch", IDS_IMPORT_SEARCH_ENGINES_CHKBOX},
64 {"importPasswords", IDS_IMPORT_PASSWORDS_CHKBOX}, 64 {"importPasswords", IDS_IMPORT_PASSWORDS_CHKBOX},
65 {"importAutofillFormData", IDS_IMPORT_AUTOFILL_FORM_DATA_CHKBOX}, 65 {"importAutofillFormData", IDS_IMPORT_AUTOFILL_FORM_DATA_CHKBOX},
66 {"importChooseFile", IDS_IMPORT_CHOOSE_FILE}, 66 {"importChooseFile", IDS_IMPORT_CHOOSE_FILE},
67 {"importCommit", IDS_IMPORT_COMMIT}, 67 {"importCommit", IDS_IMPORT_COMMIT},
68 {"noProfileFound", IDS_IMPORT_NO_PROFILE_FOUND}, 68 {"noProfileFound", IDS_IMPORT_NO_PROFILE_FOUND},
69 {"importSucceeded", IDS_IMPORT_SUCCEEDED}, 69 {"importSucceeded", IDS_IMPORT_SUCCEEDED},
70 {"findYourImportedBookmarks", IDS_IMPORT_FIND_YOUR_BOOKMARKS}, 70 {"findYourImportedBookmarks", IDS_IMPORT_FIND_YOUR_BOOKMARKS},
71 #if defined(OS_MACOSX)
72 {"macPasswordKeychain", IDS_IMPORT_PASSWORD_KEYCHAIN_WARNING},
73 #endif
74 }; 71 };
75 72
76 RegisterStrings(localized_strings, resources, arraysize(resources)); 73 RegisterStrings(localized_strings, resources, arraysize(resources));
77 RegisterTitle(localized_strings, "importDataOverlay", 74 RegisterTitle(localized_strings, "importDataOverlay",
78 IDS_IMPORT_SETTINGS_TITLE); 75 IDS_IMPORT_SETTINGS_TITLE);
79 } 76 }
80 77
81 void ImportDataHandler::InitializeHandler() { 78 void ImportDataHandler::InitializeHandler() {
82 DCHECK_CURRENTLY_ON(BrowserThread::UI); 79 DCHECK_CURRENTLY_ON(BrowserThread::UI);
83 80
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 (browser_services & importer::HISTORY) != 0); 183 (browser_services & importer::HISTORY) != 0);
187 browser_profile->SetBoolean("favorites", 184 browser_profile->SetBoolean("favorites",
188 (browser_services & importer::FAVORITES) != 0); 185 (browser_services & importer::FAVORITES) != 0);
189 browser_profile->SetBoolean("passwords", 186 browser_profile->SetBoolean("passwords",
190 (browser_services & importer::PASSWORDS) != 0); 187 (browser_services & importer::PASSWORDS) != 0);
191 browser_profile->SetBoolean("search", 188 browser_profile->SetBoolean("search",
192 (browser_services & importer::SEARCH_ENGINES) != 0); 189 (browser_services & importer::SEARCH_ENGINES) != 0);
193 browser_profile->SetBoolean("autofill-form-data", 190 browser_profile->SetBoolean("autofill-form-data",
194 (browser_services & importer::AUTOFILL_FORM_DATA) != 0); 191 (browser_services & importer::AUTOFILL_FORM_DATA) != 0);
195 192
196 browser_profile->SetBoolean("show_bottom_bar",
197 #if defined(OS_MACOSX)
198 source_profile.importer_type == importer::TYPE_SAFARI);
199 #else
200 false);
201 #endif
202
203 browser_profiles.Append(browser_profile); 193 browser_profiles.Append(browser_profile);
204 } 194 }
205 195
206 web_ui()->CallJavascriptFunction("ImportDataOverlay.updateSupportedBrowsers", 196 web_ui()->CallJavascriptFunction("ImportDataOverlay.updateSupportedBrowsers",
207 browser_profiles); 197 browser_profiles);
208 } 198 }
209 199
210 void ImportDataHandler::ImportStarted() { 200 void ImportDataHandler::ImportStarted() {
211 DCHECK_CURRENTLY_ON(BrowserThread::UI); 201 DCHECK_CURRENTLY_ON(BrowserThread::UI);
212 } 202 }
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 base::string16(), 260 base::string16(),
271 base::FilePath(), 261 base::FilePath(),
272 &file_type_info, 262 &file_type_info,
273 0, 263 0,
274 base::FilePath::StringType(), 264 base::FilePath::StringType(),
275 browser->window()->GetNativeWindow(), 265 browser->window()->GetNativeWindow(),
276 NULL); 266 NULL);
277 } 267 }
278 268
279 } // namespace options 269 } // namespace options
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/import_data_overlay.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698