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

Side by Side Diff: ui/views/examples/content_client/examples_main_delegate.cc

Issue 10383034: views/examples: Clean up cpplint warnings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 (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 "ui/views/examples/content_client/examples_main_delegate.h" 5 #include "ui/views/examples/content_client/examples_main_delegate.h"
6 6
7 #include <string>
8
7 #include "base/command_line.h" 9 #include "base/command_line.h"
8 #include "base/file_path.h" 10 #include "base/file_path.h"
9 #include "base/logging.h" 11 #include "base/logging.h"
10 #include "base/path_service.h" 12 #include "base/path_service.h"
11 #include "content/public/browser/browser_main_runner.h" 13 #include "content/public/browser/browser_main_runner.h"
12 #include "content/public/common/content_switches.h" 14 #include "content/public/common/content_switches.h"
13 #include "content/shell/shell_content_plugin_client.h" 15 #include "content/shell/shell_content_plugin_client.h"
14 #include "content/shell/shell_content_renderer_client.h" 16 #include "content/shell/shell_content_renderer_client.h"
15 #include "content/shell/shell_content_utility_client.h" 17 #include "content/shell/shell_content_utility_client.h"
16 #include "ui/base/resource/resource_bundle.h" 18 #include "ui/base/resource/resource_bundle.h"
(...skipping 20 matching lines...) Expand all
37 scoped_ptr<content::BrowserMainRunner> main_runner( 39 scoped_ptr<content::BrowserMainRunner> main_runner(
38 content::BrowserMainRunner::Create()); 40 content::BrowserMainRunner::Create());
39 int exit_code = main_runner->Initialize(main_function_params); 41 int exit_code = main_runner->Initialize(main_function_params);
40 if (exit_code >= 0) 42 if (exit_code >= 0)
41 return exit_code; 43 return exit_code;
42 exit_code = main_runner->Run(); 44 exit_code = main_runner->Run();
43 main_runner->Shutdown(); 45 main_runner->Shutdown();
44 return exit_code; 46 return exit_code;
45 } 47 }
46 48
47 } 49 } // namespace
48 50
49 ExamplesMainDelegate::ExamplesMainDelegate() { 51 ExamplesMainDelegate::ExamplesMainDelegate() {
50 } 52 }
51 53
52 ExamplesMainDelegate::~ExamplesMainDelegate() { 54 ExamplesMainDelegate::~ExamplesMainDelegate() {
53 } 55 }
54 56
55 bool ExamplesMainDelegate::BasicStartupComplete(int* exit_code) { 57 bool ExamplesMainDelegate::BasicStartupComplete(int* exit_code) {
56 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 58 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
57 std::string process_type = 59 std::string process_type =
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 content::GetContentClient()->set_utility(utility_client_.get()); 123 content::GetContentClient()->set_utility(utility_client_.get());
122 } 124 }
123 } 125 }
124 126
125 void ExamplesMainDelegate::InitializeResourceBundle() { 127 void ExamplesMainDelegate::InitializeResourceBundle() {
126 ui::ResourceBundle::InitSharedInstanceWithLocale("en-US"); 128 ui::ResourceBundle::InitSharedInstanceWithLocale("en-US");
127 } 129 }
128 130
129 } // namespace examples 131 } // namespace examples
130 } // namespace views 132 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/examples/content_client/examples_main_delegate.h ('k') | ui/views/examples/examples_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698