summaryrefslogtreecommitdiffstats
path: root/chrome/utility
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/utility')
-rw-r--r--chrome/utility/importer/importer_creator.cc4
-rw-r--r--chrome/utility/importer/importer_creator.h3
2 files changed, 4 insertions, 3 deletions
diff --git a/chrome/utility/importer/importer_creator.cc b/chrome/utility/importer/importer_creator.cc
index f260f8c..48c7c0c 100644
--- a/chrome/utility/importer/importer_creator.cc
+++ b/chrome/utility/importer/importer_creator.cc
@@ -23,7 +23,7 @@
namespace importer {
-Importer* CreateImporterByType(ImporterType type) {
+scoped_refptr<Importer> CreateImporterByType(ImporterType type) {
switch (type) {
#if defined(OS_WIN)
case TYPE_IE:
@@ -44,7 +44,7 @@ Importer* CreateImporterByType(ImporterType type) {
#endif
default:
NOTREACHED();
- return NULL;
+ return nullptr;
}
}
diff --git a/chrome/utility/importer/importer_creator.h b/chrome/utility/importer/importer_creator.h
index 40e0de5..dc61cd1 100644
--- a/chrome/utility/importer/importer_creator.h
+++ b/chrome/utility/importer/importer_creator.h
@@ -5,6 +5,7 @@
#ifndef CHROME_UTILITY_IMPORTER_IMPORTER_CREATOR_H_
#define CHROME_UTILITY_IMPORTER_IMPORTER_CREATOR_H_
+#include "base/memory/ref_counted.h"
#include "chrome/common/importer/importer_type.h"
class Importer;
@@ -12,7 +13,7 @@ class Importer;
namespace importer {
// Creates an Importer of the specified |type|.
-Importer* CreateImporterByType(ImporterType type);
+scoped_refptr<Importer> CreateImporterByType(ImporterType type);
} // namespace importer