OLD | NEW |
---|---|
(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 | |
OLD | NEW |