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

Side by Side Diff: chrome/browser/importer/ie_importer.h

Issue 14143010: Introduce IEImporterTestRegistryOverrider to be able to override the registry for a test and flag t… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 7 years, 7 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 | « no previous file | chrome/browser/importer/ie_importer.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 (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 #ifndef CHROME_BROWSER_IMPORTER_IE_IMPORTER_H_ 5 #ifndef CHROME_BROWSER_IMPORTER_IE_IMPORTER_H_
6 #define CHROME_BROWSER_IMPORTER_IE_IMPORTER_H_ 6 #define CHROME_BROWSER_IMPORTER_IE_IMPORTER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/gtest_prod_util.h" 13 #include "base/gtest_prod_util.h"
14 #include "base/string16.h" 14 #include "base/string16.h"
15 #include "chrome/browser/importer/ie_importer_test_registry_overrider_win.h"
15 #include "chrome/browser/importer/importer.h" 16 #include "chrome/browser/importer/importer.h"
16 #include "chrome/browser/importer/profile_writer.h" 17 #include "chrome/browser/importer/profile_writer.h"
17 18
18 class IEImporter : public Importer { 19 class IEImporter : public Importer {
19 public: 20 public:
20 IEImporter(); 21 IEImporter();
21 22
22 // Importer: 23 // Importer:
23 virtual void StartImport(const importer::SourceProfile& source_profile, 24 virtual void StartImport(const importer::SourceProfile& source_profile,
24 uint16 items, 25 uint16 items,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 BookmarkVector* bookmarks, 73 BookmarkVector* bookmarks,
73 std::vector<history::ImportedFaviconUsage>* favicons); 74 std::vector<history::ImportedFaviconUsage>* favicons);
74 75
75 // Determines which version of IE is in use. 76 // Determines which version of IE is in use.
76 int CurrentIEVersion() const; 77 int CurrentIEVersion() const;
77 78
78 // IE does not have source path. It's used in unit tests only for providing a 79 // IE does not have source path. It's used in unit tests only for providing a
79 // fake source. 80 // fake source.
80 base::FilePath source_path_; 81 base::FilePath source_path_;
81 82
83 // Used to override the registry for IEImporterTests if needed.
84 IEImporterTestRegistryOverrider test_registry_overrider_;
85
82 DISALLOW_COPY_AND_ASSIGN(IEImporter); 86 DISALLOW_COPY_AND_ASSIGN(IEImporter);
83 }; 87 };
84 88
85 #endif // CHROME_BROWSER_IMPORTER_IE_IMPORTER_H_ 89 #endif // CHROME_BROWSER_IMPORTER_IE_IMPORTER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/importer/ie_importer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698