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

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

Issue 1154283003: Change most uses of Pickle to base::Pickle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/api_permission.h" 5 #include "extensions/common/permissions/api_permission.h"
6 6
7 #include "extensions/common/permissions/api_permission_set.h" 7 #include "extensions/common/permissions/api_permission_set.h"
8 #include "ui/base/l10n/l10n_util.h" 8 #include "ui/base/l10n/l10n_util.h"
9 9
10 namespace { 10 namespace {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 return new SimpleAPIPermission(info()); 77 return new SimpleAPIPermission(info());
78 } 78 }
79 79
80 APIPermission* Intersect(const APIPermission* rhs) const override { 80 APIPermission* Intersect(const APIPermission* rhs) const override {
81 CHECK_EQ(info(), rhs->info()); 81 CHECK_EQ(info(), rhs->info());
82 return new SimpleAPIPermission(info()); 82 return new SimpleAPIPermission(info());
83 } 83 }
84 84
85 void Write(IPC::Message* m) const override {} 85 void Write(IPC::Message* m) const override {}
86 86
87 bool Read(const IPC::Message* m, PickleIterator* iter) override { 87 bool Read(const IPC::Message* m, base::PickleIterator* iter) override {
88 return true; 88 return true;
89 } 89 }
90 90
91 void Log(std::string* log) const override {} 91 void Log(std::string* log) const override {}
92 }; 92 };
93 93
94 } // namespace 94 } // namespace
95 95
96 namespace extensions { 96 namespace extensions {
97 97
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 return api_permission_constructor_ ? 133 return api_permission_constructor_ ?
134 api_permission_constructor_(this) : new SimpleAPIPermission(this); 134 api_permission_constructor_(this) : new SimpleAPIPermission(this);
135 } 135 }
136 136
137 PermissionMessage APIPermissionInfo::GetMessage_() const { 137 PermissionMessage APIPermissionInfo::GetMessage_() const {
138 return PermissionMessage( 138 return PermissionMessage(
139 message_id_, l10n_util::GetStringUTF16(l10n_message_id_)); 139 message_id_, l10n_util::GetStringUTF16(l10n_message_id_));
140 } 140 }
141 141
142 } // namespace extensions 142 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/common/extension_messages.cc ('k') | extensions/common/permissions/api_permission_set_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698