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

Side by Side Diff: components/content_settings/core/common/embedder_variables.cc

Issue 440423003: Clean content_settings_pattern_parser.* from unnecessary dependencies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix CrOS tests Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "components/content_settings/core/common/embedder_variables.h"
6
7 #include "base/logging.h"
8
9 namespace content_settings {
10
11 const char* extension_scheme = NULL;
12
13 void SetNonPortScheme(const char* scheme) {
14 extension_scheme = scheme;
Bernhard Bauer 2014/08/18 15:55:13 DCHECK that this isn't called more than once (with
vasilii 2014/08/20 08:44:06 Doesn't work for browser tests. It's called twice
Bernhard Bauer 2014/08/21 15:05:54 OK, then can you at least DCHECK that if it's call
vasilii 2014/08/22 13:02:45 Done.
15 }
16
17 // Compares |scheme| against embedder's extension scheme.
18 bool IsNonPortScheme(const std::string& scheme) {
19 DCHECK(extension_scheme);
20 return scheme == extension_scheme;
21 }
22
23 } // namespace content_settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698