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

Unified Diff: chrome/browser/ui/website_settings/website_settings_utils.cc

Issue 10837174: (GTK only) For internal chrome pages display only a bubble with an info string instead of the Websi… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/website_settings/website_settings_utils.cc
diff --git a/chrome/browser/ui/website_settings/website_settings_utils.cc b/chrome/browser/ui/website_settings/website_settings_utils.cc
new file mode 100644
index 0000000000000000000000000000000000000000..7e90ac45179491510c9e917556d6827d9c1711fb
--- /dev/null
+++ b/chrome/browser/ui/website_settings/website_settings_utils.cc
@@ -0,0 +1,14 @@
+// Copyright (c) 2012 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/ui/website_settings/website_settings_utils.h"
+
+#include "chrome/common/url_constants.h"
+#include "googleurl/src/gurl.h"
+
+// Returns true if the passed |url| refers to an internal chrome page.
+bool InternalChromePage(const GURL& url) {
+ return url.SchemeIs(chrome::kChromeInternalScheme) ||
+ url.SchemeIs(chrome::kChromeUIScheme);
+}

Powered by Google App Engine
This is Rietveld 408576698