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

Unified Diff: chrome/browser/sync/test/integration/search_engines_helper.h

Issue 2290503003: Remove use of stl_util in search_engines. (Closed)
Patch Set: ios for reals Created 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/test/integration/search_engines_helper.h
diff --git a/chrome/browser/sync/test/integration/search_engines_helper.h b/chrome/browser/sync/test/integration/search_engines_helper.h
index fc35109b392194e0fae6522e4e7c47b5c340fa64..86213be7c25bde765b6d4858c57e530b4e73f7d8 100644
--- a/chrome/browser/sync/test/integration/search_engines_helper.h
+++ b/chrome/browser/sync/test/integration/search_engines_helper.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SEARCH_ENGINES_HELPER_H_
#include <map>
+#include <memory>
#include <string>
#include "base/strings/string16.h"
@@ -35,17 +36,18 @@ bool AwaitAllServicesMatch();
// Returns true iff all TemplateURLServices match with the verifier.
bool AllServicesMatch();
-// Create a TemplateURL with some test values based on |seed|. The caller owns
-// the returned TemplateURL*.
-TemplateURL* CreateTestTemplateURL(Profile* profile,
- int seed,
- const base::string16& keyword,
- const std::string& sync_guid);
-TemplateURL* CreateTestTemplateURL(Profile* profile,
- int seed,
- const base::string16& keyword,
- const std::string& url,
- const std::string& sync_guid);
+// Create a TemplateURL with some test values based on |seed|.
+std::unique_ptr<TemplateURL> CreateTestTemplateURL(
+ Profile* profile,
+ int seed,
+ const base::string16& keyword,
+ const std::string& sync_guid);
+std::unique_ptr<TemplateURL> CreateTestTemplateURL(
+ Profile* profile,
+ int seed,
+ const base::string16& keyword,
+ const std::string& url,
+ const std::string& sync_guid);
// Add a search engine based on a seed to the service at index |profile_index|
// and the verifier if it is used.

Powered by Google App Engine
This is Rietveld 408576698