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

Side by Side Diff: chrome/browser/favicon/favicon_utils.cc

Issue 1260033003: Partially componentize //chrome/browser/search/search.{h,cc} (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compilation on iOS Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/favicon/favicon_utils.h" 5 #include "chrome/browser/favicon/favicon_utils.h"
6 6
7 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 7 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
8 #include "chrome/browser/favicon/favicon_service_factory.h" 8 #include "chrome/browser/favicon/favicon_service_factory.h"
9 #include "chrome/browser/history/history_service_factory.h" 9 #include "chrome/browser/history/history_service_factory.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 27 matching lines...) Expand all
38 if (controller.GetLastCommittedEntry() && controller.GetPendingEntry()) 38 if (controller.GetLastCommittedEntry() && controller.GetPendingEntry())
39 return true; 39 return true;
40 40
41 GURL url = web_contents->GetURL(); 41 GURL url = web_contents->GetURL();
42 if (url.SchemeIs(content::kChromeUIScheme) && 42 if (url.SchemeIs(content::kChromeUIScheme) &&
43 url.host() == chrome::kChromeUINewTabHost) { 43 url.host() == chrome::kChromeUINewTabHost) {
44 return false; 44 return false;
45 } 45 }
46 46
47 // No favicon on Instant New Tab Pages. 47 // No favicon on Instant New Tab Pages.
48 if (chrome::IsInstantNTP(web_contents)) 48 if (search::IsInstantNTP(web_contents))
49 return false; 49 return false;
50 50
51 return true; 51 return true;
52 } 52 }
53 53
54 } // namespace favicon 54 } // namespace favicon
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_url_rewrite_browsertest.cc ('k') | chrome/browser/policy/policy_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698