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

Side by Side Diff: chrome/browser/ui/views/uninstall_view.cc

Issue 15496003: Remove the uninstall dialog black border. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove debugging code. Created 7 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
« no previous file with comments | « no previous file | 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 (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 "chrome/browser/ui/views/uninstall_view.h" 5 #include "chrome/browser/ui/views/uninstall_view.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/process_util.h" 8 #include "base/process_util.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // this code can be called while the module refcount is still at 0. 174 // this code can be called while the module refcount is still at 0.
175 // Note that this reference is never released, as this code is shown on a path 175 // Note that this reference is never released, as this code is shown on a path
176 // that immediately exits Chrome anyway. 176 // that immediately exits Chrome anyway.
177 // See http://crbug.com/241366 for details. 177 // See http://crbug.com/241366 for details.
178 g_browser_process->AddRefModule(); 178 g_browser_process->AddRefModule();
179 179
180 base::RunLoop run_loop(&accelerator_handler); 180 base::RunLoop run_loop(&accelerator_handler);
181 UninstallView* view = new UninstallView(&result, 181 UninstallView* view = new UninstallView(&result,
182 run_loop.QuitClosure(), 182 run_loop.QuitClosure(),
183 show_delete_profile); 183 show_delete_profile);
184 views::Widget::CreateWindow(view)->Show(); 184 views::DialogDelegate::CreateDialogWidget(view, NULL, NULL)->Show();
185 run_loop.Run(); 185 run_loop.Run();
186 return result; 186 return result;
187 } 187 }
188 188
189 } // namespace chrome 189 } // namespace chrome
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698