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/importer/profile_writer.h" | 5 #include "chrome/browser/importer/profile_writer.h" |
6 | 6 |
7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
8 #include "base/thread.h" | 8 #include "base/thread.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "chrome/browser/bookmarks/bookmark_model.h" | 10 #include "chrome/browser/bookmarks/bookmark_model.h" |
11 #include "chrome/browser/importer/importer.h" | 11 #include "chrome/browser/importer/importer.h" |
12 #include "chrome/browser/password_manager/password_store.h" | 12 #include "chrome/browser/password_manager/password_store.h" |
13 #include "chrome/browser/prefs/pref_service.h" | 13 #include "chrome/browser/prefs/pref_service.h" |
14 #include "chrome/browser/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
15 #include "chrome/browser/search_engines/template_url.h" | 15 #include "chrome/browser/search_engines/template_url.h" |
16 #include "chrome/browser/search_engines/template_url_model.h" | 16 #include "chrome/browser/search_engines/template_url_model.h" |
17 #include "chrome/common/notification_service.h" | 17 #include "chrome/common/notification_service.h" |
18 #include "chrome/common/pref_names.h" | 18 #include "chrome/common/pref_names.h" |
19 | 19 |
20 using webkit_glue::PasswordForm; | 20 using webkit_glue::PasswordForm; |
21 | 21 |
22 ProfileWriter::BookmarkEntry::BookmarkEntry() : in_toolbar(false) {} | 22 ProfileWriter::BookmarkEntry::BookmarkEntry() : in_toolbar(false) {} |
23 | 23 |
24 ProfileWriter::BookmarkEntry::~BookmarkEntry() {} | 24 ProfileWriter::BookmarkEntry::~BookmarkEntry() {} |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 ((!import_to_bookmark_bar || !entry.in_toolbar) && | 351 ((!import_to_bookmark_bar || !entry.in_toolbar) && |
352 parent != model->other_node()))) { | 352 parent != model->other_node()))) { |
353 found_match = false; | 353 found_match = false; |
354 } | 354 } |
355 | 355 |
356 if (found_match) | 356 if (found_match) |
357 return true; // Found a match with the same url path and title. | 357 return true; // Found a match with the same url path and title. |
358 } | 358 } |
359 return false; | 359 return false; |
360 } | 360 } |
OLD | NEW |