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

Unified Diff: chrome/common/importer/edge_importer_utils_win.h

Issue 1465853002: Implement support for importing favorites from Edge on Windows 10. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix another CLANG warning Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/importer/edge_importer_utils_win.h
diff --git a/chrome/common/importer/edge_importer_utils_win.h b/chrome/common/importer/edge_importer_utils_win.h
new file mode 100644
index 0000000000000000000000000000000000000000..31381f5bbfc6e68e90193cec1cf5438e8343d416
--- /dev/null
+++ b/chrome/common/importer/edge_importer_utils_win.h
@@ -0,0 +1,32 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_COMMON_IMPORTER_EDGE_IMPORTER_UTILS_WIN_H_
+#define CHROME_COMMON_IMPORTER_EDGE_IMPORTER_UTILS_WIN_H_
+
+#include "base/files/file_path.h"
+#include "base/strings/string16.h"
+
+namespace importer {
+
+// Returns the key to be used in HKCU to look for Edge's favorites order blob.
+// Overridable by tests via IEImporterTestRegistryOverrider.
Ilya Sherman 2015/11/26 02:04:44 Why does the overrider have "IE" in its name, if i
forshaw 2015/11/30 12:57:58 I repurpose the IE registry overrider which is has
Ilya Sherman 2015/12/01 07:31:18 I think it might be useful to rename the class. F
+base::string16 GetEdgeFavoritesOrderKey();
+
+// Returns the key to be used in HKCU to look for Edge's settings.
+// Overridable by tests via IEImporterTestRegistryOverrider.
+base::string16 GetEdgeSettingsKey();
+
+// Returns the data path for the Edge browser. Returns an empty path on error.
+base::FilePath GetEdgeDataFilePath();
+
+// Returns true if Edge favorites is current in legacy (pre-Edge 13) mode.
Ilya Sherman 2015/11/26 02:04:44 nit: "current in" -> "currently in"?
forshaw 2015/11/30 12:57:58 Acknowledged.
+bool IsEdgeFavoritesLegacyMode();
+
+// Returns true if the Edge browser is installed and available for import.
+bool EdgeImporterCanImport();
+
+} // namespace importer
+
+#endif // CHROME_COMMON_IMPORTER_EDGE_IMPORTER_UTILS_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698