| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_helper.h" | 5 #include "chrome/browser/favicon_helper.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 } | 306 } |
| 307 | 307 |
| 308 bool FaviconHelper::ShouldSaveFavicon(const GURL& url) { | 308 bool FaviconHelper::ShouldSaveFavicon(const GURL& url) { |
| 309 if (!profile()->IsOffTheRecord()) | 309 if (!profile()->IsOffTheRecord()) |
| 310 return true; | 310 return true; |
| 311 | 311 |
| 312 // Otherwise store the favicon if the page is bookmarked. | 312 // Otherwise store the favicon if the page is bookmarked. |
| 313 BookmarkModel* bookmark_model = profile()->GetBookmarkModel(); | 313 BookmarkModel* bookmark_model = profile()->GetBookmarkModel(); |
| 314 return bookmark_model && bookmark_model->IsBookmarked(url); | 314 return bookmark_model && bookmark_model->IsBookmarked(url); |
| 315 } | 315 } |
| OLD | NEW |