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

Unified Diff: chrome/browser/sessions/session_common_utils.cc

Issue 1331173002: Eliminate BaseSessionServiceDelegateImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@persistent_tab_restore_service_client
Patch Set: Response to reviewv Created 5 years, 3 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
« no previous file with comments | « chrome/browser/sessions/session_common_utils.h ('k') | chrome/browser/sessions/session_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sessions/session_common_utils.cc
diff --git a/chrome/browser/sessions/session_common_utils.cc b/chrome/browser/sessions/session_common_utils.cc
new file mode 100644
index 0000000000000000000000000000000000000000..75973b73afa83d823ab1c05efe8b9bea2e52b675
--- /dev/null
+++ b/chrome/browser/sessions/session_common_utils.cc
@@ -0,0 +1,15 @@
+// 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/sessions/session_common_utils.h"
+
+#include "chrome/common/url_constants.h"
+#include "url/gurl.h"
+
+bool ShouldTrackURLForRestore(const GURL& url) {
+ return url.is_valid() &&
+ !(url.SchemeIs(content::kChromeUIScheme) &&
+ (url.host() == chrome::kChromeUIQuitHost ||
+ url.host() == chrome::kChromeUIRestartHost));
+}
« no previous file with comments | « chrome/browser/sessions/session_common_utils.h ('k') | chrome/browser/sessions/session_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698