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

Side by Side Diff: chrome/common/extensions/extension_message_bundle.cc

Issue 3814013: FBTF: Monster ctor patch after changing heuristics in clang plugin. (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: More add file fail Created 10 years, 2 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
« no previous file with comments | « chrome/common/extensions/extension_message_bundle.h ('k') | media/base/callback.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/common/extensions/extension_message_bundle.h" 5 #include "chrome/common/extensions/extension_message_bundle.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "app/l10n_util.h" 10 #include "app/l10n_util.h"
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 307
308 return ""; 308 return "";
309 } 309 }
310 310
311 /////////////////////////////////////////////////////////////////////////////// 311 ///////////////////////////////////////////////////////////////////////////////
312 // 312 //
313 // Renderer helper functions. 313 // Renderer helper functions.
314 // 314 //
315 /////////////////////////////////////////////////////////////////////////////// 315 ///////////////////////////////////////////////////////////////////////////////
316 316
317 ExtensionToMessagesMap::ExtensionToMessagesMap() {}
318
319 ExtensionToMessagesMap::~ExtensionToMessagesMap() {}
320
317 ExtensionToL10nMessagesMap* GetExtensionToL10nMessagesMap() { 321 ExtensionToL10nMessagesMap* GetExtensionToL10nMessagesMap() {
318 return &Singleton<ExtensionToMessagesMap>()->messages_map; 322 return &Singleton<ExtensionToMessagesMap>()->messages_map;
319 } 323 }
320 324
321 L10nMessagesMap* GetL10nMessagesMap(const std::string extension_id) { 325 L10nMessagesMap* GetL10nMessagesMap(const std::string extension_id) {
322 ExtensionToL10nMessagesMap::iterator it = 326 ExtensionToL10nMessagesMap::iterator it =
323 Singleton<ExtensionToMessagesMap>()->messages_map.find(extension_id); 327 Singleton<ExtensionToMessagesMap>()->messages_map.find(extension_id);
324 if (it != Singleton<ExtensionToMessagesMap>()->messages_map.end()) 328 if (it != Singleton<ExtensionToMessagesMap>()->messages_map.end())
325 return &(it->second); 329 return &(it->second);
326 330
327 return NULL; 331 return NULL;
328 } 332 }
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension_message_bundle.h ('k') | media/base/callback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698