| 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));
|
| +}
|
|
|