OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 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 #ifndef CHROME_BROWSER_PERMISSIONS_PERMISSION_UTIL_H_ | |
6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_UTIL_H_ | |
7 | |
8 #include "base/logging.h" | |
mlamouri (slow - plz ping)
2015/10/21 11:26:06
Why do you need logging.h?
kcarattini
2015/10/26 00:30:59
Moved to the .cc file, needed for NOTREACHED()
| |
9 #include "components/content_settings/core/common/content_settings_types.h" | |
10 | |
11 // A utility class for permissions. | |
12 class PermissionUtil { | |
13 public: | |
14 // Returns the permission string for the given ContentSettingsType. | |
15 static const std::string GetPermissionString(ContentSettingsType permission); | |
Bernhard Bauer
2015/10/21 10:29:04
The const is unnecessary, as the string is returne
kcarattini
2015/10/26 00:30:59
Done.
| |
16 | |
17 private: | |
18 DISALLOW_IMPLICIT_CONSTRUCTORS(PermissionUtil); | |
19 }; | |
20 | |
21 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_UTIL_H_ | |
OLD | NEW |