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

Side by Side Diff: chrome/common/extensions/manifest_handlers/content_scripts_handler.cc

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: l10n again Created 3 years, 9 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/common/extensions/manifest_handlers/content_scripts_handler.h" 5 #include "chrome/common/extensions/manifest_handlers/content_scripts_handler.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 10
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 return false; 323 return false;
324 } 324 }
325 325
326 return true; 326 return true;
327 } 327 }
328 328
329 struct EmptyUserScriptList { 329 struct EmptyUserScriptList {
330 UserScriptList user_script_list; 330 UserScriptList user_script_list;
331 }; 331 };
332 332
333 static base::LazyInstance<EmptyUserScriptList> g_empty_script_list = 333 static base::LazyInstance<EmptyUserScriptList>::DestructorAtExit
334 LAZY_INSTANCE_INITIALIZER; 334 g_empty_script_list = LAZY_INSTANCE_INITIALIZER;
335 335
336 } // namespace 336 } // namespace
337 337
338 ContentScriptsInfo::ContentScriptsInfo() { 338 ContentScriptsInfo::ContentScriptsInfo() {
339 } 339 }
340 340
341 ContentScriptsInfo::~ContentScriptsInfo() { 341 ContentScriptsInfo::~ContentScriptsInfo() {
342 } 342 }
343 343
344 // static 344 // static
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 if (!IsScriptValid(path, css_script->relative_path(), 459 if (!IsScriptValid(path, css_script->relative_path(),
460 IDS_EXTENSION_LOAD_CSS_FAILED, error)) 460 IDS_EXTENSION_LOAD_CSS_FAILED, error))
461 return false; 461 return false;
462 } 462 }
463 } 463 }
464 464
465 return true; 465 return true;
466 } 466 }
467 467
468 } // namespace extensions 468 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698