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

Side by Side Diff: extensions/common/permissions/socket_permission.cc

Issue 239543005: Introduce extensions_strings.grd (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "extensions/common/permissions/socket_permission.h" 5 #include "extensions/common/permissions/socket_permission.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
12 #include "extensions/common/permissions/permissions_info.h" 12 #include "extensions/common/permissions/permissions_info.h"
13 #include "extensions/common/permissions/set_disjunction_permission.h" 13 #include "extensions/common/permissions/set_disjunction_permission.h"
14 #include "grit/generated_resources.h" 14 #include "grit/extensions_strings.h"
15 #include "ui/base/l10n/l10n_util.h" 15 #include "ui/base/l10n/l10n_util.h"
16 16
17 namespace extensions { 17 namespace extensions {
18 18
19 SocketPermission::SocketPermission(const APIPermissionInfo* info) 19 SocketPermission::SocketPermission(const APIPermissionInfo* info)
20 : SetDisjunctionPermission<SocketPermissionData, SocketPermission>(info) {} 20 : SetDisjunctionPermission<SocketPermissionData, SocketPermission>(info) {}
21 21
22 SocketPermission::~SocketPermission() {} 22 SocketPermission::~SocketPermission() {}
23 23
24 PermissionMessages SocketPermission::GetMessages() const { 24 PermissionMessages SocketPermission::GetMessages() const {
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 content::SocketPermissionRequest::NETWORK_STATE) { 99 content::SocketPermissionRequest::NETWORK_STATE) {
100 messages.push_back( 100 messages.push_back(
101 PermissionMessage(PermissionMessage::kNetworkState, 101 PermissionMessage(PermissionMessage::kNetworkState,
102 l10n_util::GetStringUTF16( 102 l10n_util::GetStringUTF16(
103 IDS_EXTENSION_PROMPT_WARNING_NETWORK_STATE))); 103 IDS_EXTENSION_PROMPT_WARNING_NETWORK_STATE)));
104 } 104 }
105 } 105 }
106 } 106 }
107 107
108 } // namespace extensions 108 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698