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

Side by Side Diff: chrome/renderer/extensions/extension_localization_peer.cc

Issue 228073005: Move core extensions l10n code to //extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unused header is unused 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 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 "chrome/renderer/extensions/extension_localization_peer.h" 5 #include "chrome/renderer/extensions/extension_localization_peer.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "chrome/common/extensions/message_bundle.h"
10 #include "chrome/common/url_constants.h" 9 #include "chrome/common/url_constants.h"
11 #include "extensions/common/constants.h" 10 #include "extensions/common/constants.h"
12 #include "extensions/common/extension_messages.h" 11 #include "extensions/common/extension_messages.h"
12 #include "extensions/common/message_bundle.h"
13 #include "grit/generated_resources.h" 13 #include "grit/generated_resources.h"
14 #include "ipc/ipc_sender.h" 14 #include "ipc/ipc_sender.h"
15 #include "net/base/net_errors.h" 15 #include "net/base/net_errors.h"
16 #include "net/http/http_response_headers.h" 16 #include "net/http/http_response_headers.h"
17 17
18 ExtensionLocalizationPeer::ExtensionLocalizationPeer( 18 ExtensionLocalizationPeer::ExtensionLocalizationPeer(
19 content::RequestPeer* peer, 19 content::RequestPeer* peer,
20 IPC::Sender* message_sender, 20 IPC::Sender* message_sender,
21 const GURL& request_url) 21 const GURL& request_url)
22 : original_peer_(peer), 22 : original_peer_(peer),
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 123
124 l10n_messages = extensions::GetL10nMessagesMap(extension_id); 124 l10n_messages = extensions::GetL10nMessagesMap(extension_id);
125 } 125 }
126 126
127 std::string error; 127 std::string error;
128 if (extensions::MessageBundle::ReplaceMessagesWithExternalDictionary( 128 if (extensions::MessageBundle::ReplaceMessagesWithExternalDictionary(
129 *l10n_messages, &data_, &error)) { 129 *l10n_messages, &data_, &error)) {
130 data_.resize(data_.size()); 130 data_.resize(data_.size());
131 } 131 }
132 } 132 }
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/dispatcher.cc ('k') | chrome/renderer/extensions/extension_localization_peer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698