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

Side by Side Diff: ui/views/examples/examples_main.cc

Issue 2311783002: Re-enable PRESUBMIT check for empty unique_ptr<> rvalue (Closed)
Patch Set: Remove obsolete TODO Created 4 years, 3 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
« no previous file with comments | « ui/events/blink/input_handler_proxy_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 <memory> 5 #include <memory>
6 6
7 #include "base/at_exit.h" 7 #include "base/at_exit.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/i18n/icu_util.h" 10 #include "base/i18n/icu_util.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 views::DesktopTestViewsDelegate views_delegate; 105 views::DesktopTestViewsDelegate views_delegate;
106 #if defined(USE_AURA) 106 #if defined(USE_AURA)
107 wm::WMState wm_state; 107 wm::WMState wm_state;
108 #endif 108 #endif
109 #if !defined(OS_CHROMEOS) && defined(USE_AURA) 109 #if !defined(OS_CHROMEOS) && defined(USE_AURA)
110 std::unique_ptr<display::Screen> desktop_screen( 110 std::unique_ptr<display::Screen> desktop_screen(
111 views::CreateDesktopScreen()); 111 views::CreateDesktopScreen());
112 display::Screen::SetScreenInstance(desktop_screen.get()); 112 display::Screen::SetScreenInstance(desktop_screen.get());
113 #endif 113 #endif
114 114
115 views::examples::ShowExamplesWindow( 115 views::examples::ShowExamplesWindow(views::examples::QUIT_ON_CLOSE, nullptr,
116 views::examples::QUIT_ON_CLOSE, nullptr, 116 nullptr);
117 std::unique_ptr<ScopedVector<views::examples::ExampleBase>>());
118 117
119 base::RunLoop().Run(); 118 base::RunLoop().Run();
120 119
121 ui::ResourceBundle::CleanupSharedInstance(); 120 ui::ResourceBundle::CleanupSharedInstance();
122 } 121 }
123 122
124 ui::ShutdownInputMethod(); 123 ui::ShutdownInputMethod();
125 124
126 #if defined(USE_AURA) 125 #if defined(USE_AURA)
127 env.reset(); 126 env.reset();
128 #endif 127 #endif
129 128
130 return 0; 129 return 0;
131 } 130 }
OLDNEW
« no previous file with comments | « ui/events/blink/input_handler_proxy_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698