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

Side by Side Diff: content/app/content_main_runner.cc

Issue 12210030: Linux/ChromeOS Chromium style checker cleanup, content/ edition. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 10 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 | « no previous file | content/browser/accessibility/browser_accessibility_manager_unittest.cc » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/public/app/content_main_runner.h" 5 #include "content/public/app/content_main_runner.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include "base/allocator/allocator_extension.h" 9 #include "base/allocator/allocator_extension.h"
10 #include "base/at_exit.h" 10 #include "base/at_exit.h"
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 ContentMainRunnerImpl() 472 ContentMainRunnerImpl()
473 : is_initialized_(false), 473 : is_initialized_(false),
474 is_shutdown_(false), 474 is_shutdown_(false),
475 completed_basic_startup_(false), 475 completed_basic_startup_(false),
476 delegate_(NULL) { 476 delegate_(NULL) {
477 #if defined(OS_WIN) 477 #if defined(OS_WIN)
478 memset(&sandbox_info_, 0, sizeof(sandbox_info_)); 478 memset(&sandbox_info_, 0, sizeof(sandbox_info_));
479 #endif 479 #endif
480 } 480 }
481 481
482 ~ContentMainRunnerImpl() { 482 virtual ~ContentMainRunnerImpl() {
483 if (is_initialized_ && !is_shutdown_) 483 if (is_initialized_ && !is_shutdown_)
484 Shutdown(); 484 Shutdown();
485 } 485 }
486 486
487 #if defined(USE_TCMALLOC) 487 #if defined(USE_TCMALLOC)
488 static bool GetAllocatorWasteSizeThunk(size_t* size) { 488 static bool GetAllocatorWasteSizeThunk(size_t* size) {
489 size_t heap_size, allocated_bytes, unmapped_bytes; 489 size_t heap_size, allocated_bytes, unmapped_bytes;
490 MallocExtension* ext = MallocExtension::instance(); 490 MallocExtension* ext = MallocExtension::instance();
491 if (ext->GetNumericProperty("generic.heap_size", &heap_size) && 491 if (ext->GetNumericProperty("generic.heap_size", &heap_size) &&
492 ext->GetNumericProperty("generic.current_allocated_bytes", 492 ext->GetNumericProperty("generic.current_allocated_bytes",
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 812
813 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl); 813 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl);
814 }; 814 };
815 815
816 // static 816 // static
817 ContentMainRunner* ContentMainRunner::Create() { 817 ContentMainRunner* ContentMainRunner::Create() {
818 return new ContentMainRunnerImpl(); 818 return new ContentMainRunnerImpl();
819 } 819 }
820 820
821 } // namespace content 821 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698