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

Unified Diff: chrome/browser/sync/chrome_sync_client.cc

Issue 2409423005: Compare GURLs to kUrlConstants with .spec() and string equality (Closed)
Patch Set: rebase on dependent patch Created 4 years, 2 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/sync/chrome_sync_client.cc
diff --git a/chrome/browser/sync/chrome_sync_client.cc b/chrome/browser/sync/chrome_sync_client.cc
index 9bf1459788f85cab5d8ee3628243ca2298486b05..5c7a532a001a5657f32dd59943c899749fa47921 100644
--- a/chrome/browser/sync/chrome_sync_client.cc
+++ b/chrome/browser/sync/chrome_sync_client.cc
@@ -151,7 +151,7 @@ class SyncSessionsClientImpl : public sync_sessions::SyncSessionsClient {
profile_, ServiceAccessType::EXPLICIT_ACCESS);
}
bool ShouldSyncURL(const GURL& url) const override {
- if (url == GURL(chrome::kChromeUIHistoryURL)) {
+ if (url == chrome::kChromeUIHistoryURL) {
// The history page is treated specially as we want it to trigger syncable
// events for UI purposes.
return true;
« no previous file with comments | « chrome/browser/sessions/session_restore.cc ('k') | chrome/browser/ui/search/new_tab_page_interceptor_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698