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

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

Issue 11428004: Sync the bookmark's icon URL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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/browser/sync/test/integration/bookmarks_helper.h
diff --git a/chrome/browser/sync/test/integration/bookmarks_helper.h b/chrome/browser/sync/test/integration/bookmarks_helper.h
index d1373cac206d42e6dfd7403bfc97035b02ef2118..586c1486442c3072fa255b8fff8781aef6ddc595 100644
--- a/chrome/browser/sync/test/integration/bookmarks_helper.h
+++ b/chrome/browser/sync/test/integration/bookmarks_helper.h
@@ -88,12 +88,12 @@ void SetTitle(int profile,
const BookmarkNode* node,
const std::wstring& new_title);
-// Sets the favicon of the node |node| (of type BookmarkNode::URL) in the
-// bookmark model of profile |profile| using the data in |icon_bytes_vector|.
-void SetFavicon(
- int profile,
- const BookmarkNode* node,
- const std::vector<unsigned char>& icon_bytes_vector);
+// Sets the |icon_url| and |image| data of the favicon of the node |node|
+// (of type BookmarkNode::URL) in the bookmark model of profile |profile|.
Nicolas Zea 2012/11/27 18:56:09 move "(of type BookmarkNode::URL) to right after |
+void SetFavicon(int profile,
+ const BookmarkNode* node,
+ const GURL& icon_url,
+ const gfx::Image& image);
// Changes the url of the node |node| in the bookmark model of profile
// |profile| to |new_url|. Returns a pointer to the node with the changed url.
@@ -165,8 +165,9 @@ int CountFoldersWithTitlesMatching(
int profile,
const std::wstring& title) WARN_UNUSED_RESULT;
-// Creates a unique favicon using |seed|.
-std::vector<unsigned char> CreateFavicon(int seed);
+// Creates a favicon of |color| with image reps of the platform's supported
+// scale factors (eg MacOS) in addition to 1x.
+gfx::Image CreateFavicon(SkColor color);
// Returns a URL identifiable by |i|.
std::string IndexedURL(int i);

Powered by Google App Engine
This is Rietveld 408576698