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

Unified Diff: chrome/browser/bookmarks/bookmark_html_writer_unittest.cc

Issue 839193002: Move ServiceAccessType into //components/keyed_service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compilation on android Created 5 years, 11 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/bookmarks/bookmark_html_writer_unittest.cc
diff --git a/chrome/browser/bookmarks/bookmark_html_writer_unittest.cc b/chrome/browser/bookmarks/bookmark_html_writer_unittest.cc
index ddaebf307feff78a20a3c4ec4134a188b2479f63..b32c2f58e99e790d72fd7400f3561b0ae6fe912a 100644
--- a/chrome/browser/bookmarks/bookmark_html_writer_unittest.cc
+++ b/chrome/browser/bookmarks/bookmark_html_writer_unittest.cc
@@ -196,12 +196,12 @@ TEST_F(BookmarkHTMLWriterTest, Test) {
const BookmarkNode* f1 = model->AddFolder(
model->bookmark_bar_node(), 0, f1_title);
model->AddURLWithCreationTimeAndMetaInfo(f1, 0, url1_title, url1, t1, NULL);
- HistoryServiceFactory::GetForProfile(&profile, Profile::EXPLICIT_ACCESS)->
- AddPage(url1, base::Time::Now(), history::SOURCE_BROWSED);
- FaviconServiceFactory::GetForProfile(&profile, Profile::EXPLICIT_ACCESS)
- ->SetFavicons(url1,
- url1_favicon,
- favicon_base::FAVICON,
+ HistoryServiceFactory::GetForProfile(&profile,
+ ServiceAccessType::EXPLICIT_ACCESS)
+ ->AddPage(url1, base::Time::Now(), history::SOURCE_BROWSED);
+ FaviconServiceFactory::GetForProfile(&profile,
+ ServiceAccessType::EXPLICIT_ACCESS)
+ ->SetFavicons(url1, url1_favicon, favicon_base::FAVICON,
gfx::Image::CreateFrom1xBitmap(bitmap));
const BookmarkNode* f2 = model->AddFolder(f1, 1, f2_title);
model->AddURLWithCreationTimeAndMetaInfo(f2, 0, url2_title, url2, t2, NULL);
@@ -234,7 +234,8 @@ TEST_F(BookmarkHTMLWriterTest, Test) {
run_loop.Run();
// Clear favicon so that it would be read from file.
- FaviconServiceFactory::GetForProfile(&profile, Profile::EXPLICIT_ACCESS)
+ FaviconServiceFactory::GetForProfile(&profile,
+ ServiceAccessType::EXPLICIT_ACCESS)
->SetFavicons(url1, url1_favicon, favicon_base::FAVICON, gfx::Image());
// Read the bookmarks back in.
« no previous file with comments | « chrome/browser/bookmarks/bookmark_html_writer.cc ('k') | chrome/browser/bookmarks/chrome_bookmark_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698