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

Unified Diff: chrome/browser/enhanced_bookmarks/android/enhanced_bookmark_tab_helper.cc

Issue 1202713002: Replace enhanced bookmarks salient images with favicons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Line wraps in EnhanacedBookmarkItem.java Created 5 years, 6 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/enhanced_bookmarks/android/enhanced_bookmark_tab_helper.cc
diff --git a/chrome/browser/enhanced_bookmarks/android/enhanced_bookmark_tab_helper.cc b/chrome/browser/enhanced_bookmarks/android/enhanced_bookmark_tab_helper.cc
deleted file mode 100644
index 0fb5e58c4dea113d53cd3480fa0221b5b7a2934f..0000000000000000000000000000000000000000
--- a/chrome/browser/enhanced_bookmarks/android/enhanced_bookmark_tab_helper.cc
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright 2014 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.
-
-#include "chrome/browser/enhanced_bookmarks/android/enhanced_bookmark_tab_helper.h"
-
-#include "chrome/browser/bookmarks/enhanced_bookmarks_features.h"
-#include "chrome/browser/browser_process.h"
-#include "chrome/browser/enhanced_bookmarks/android/bookmark_image_service_android.h"
-#include "chrome/browser/enhanced_bookmarks/android/bookmark_image_service_factory.h"
-#include "chrome/browser/profiles/profile.h"
-
-using enhanced_bookmarks::BookmarkImageServiceAndroid;
-using enhanced_bookmarks::BookmarkImageServiceFactory;
-
-DEFINE_WEB_CONTENTS_USER_DATA_KEY(EnhancedBookmarkTabHelper);
-
-void EnhancedBookmarkTabHelper::DocumentOnLoadCompletedInMainFrame() {
- Profile* profile =
- Profile::FromBrowserContext(web_contents()->GetBrowserContext());
-
- if (profile->IsOffTheRecord())
- return;
-
- if (!IsEnhancedBookmarksEnabled())
- return;
-
- BookmarkImageServiceAndroid* storage =
- static_cast<BookmarkImageServiceAndroid*>(
- BookmarkImageServiceFactory::GetForBrowserContext(profile));
- storage->FinishSuccessfulPageLoadForTab(web_contents(), true);
-}
-
-EnhancedBookmarkTabHelper::EnhancedBookmarkTabHelper(
- content::WebContents* contents)
- : content::WebContentsObserver(contents) {
-}

Powered by Google App Engine
This is Rietveld 408576698