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

Side by Side Diff: chrome/browser/browser_shutdown.cc

Issue 1229933005: Revert "Componentize chrome/browser/rlz" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 | « chrome/browser/DEPS ('k') | chrome/browser/chrome_browser_main.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 "chrome/browser/browser_shutdown.h" 5 #include "chrome/browser/browser_shutdown.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 22 matching lines...) Expand all
33 #include "components/metrics/metrics_service.h" 33 #include "components/metrics/metrics_service.h"
34 #include "content/public/browser/browser_thread.h" 34 #include "content/public/browser/browser_thread.h"
35 #include "content/public/browser/render_process_host.h" 35 #include "content/public/browser/render_process_host.h"
36 36
37 #if defined(OS_WIN) 37 #if defined(OS_WIN)
38 #include "chrome/browser/browser_util_win.h" 38 #include "chrome/browser/browser_util_win.h"
39 #include "chrome/browser/first_run/upgrade_util_win.h" 39 #include "chrome/browser/first_run/upgrade_util_win.h"
40 #endif 40 #endif
41 41
42 #if defined(ENABLE_RLZ) 42 #if defined(ENABLE_RLZ)
43 #include "components/rlz/rlz_tracker.h" 43 #include "chrome/browser/rlz/rlz.h"
44 #endif 44 #endif
45 45
46 #if defined(OS_CHROMEOS) 46 #if defined(OS_CHROMEOS)
47 #include "chrome/browser/chromeos/boot_times_recorder.h" 47 #include "chrome/browser/chromeos/boot_times_recorder.h"
48 #endif 48 #endif
49 49
50 #if defined(ENABLE_PRINT_PREVIEW) 50 #if defined(ENABLE_PRINT_PREVIEW)
51 #include "chrome/browser/service_process/service_process_control.h" 51 #include "chrome/browser/service_process/service_process_control.h"
52 #endif 52 #endif
53 53
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 } 185 }
186 } 186 }
187 #endif 187 #endif
188 } 188 }
189 189
190 prefs->CommitPendingWrite(); 190 prefs->CommitPendingWrite();
191 191
192 #if defined(ENABLE_RLZ) 192 #if defined(ENABLE_RLZ)
193 // Cleanup any statics created by RLZ. Must be done before NotificationService 193 // Cleanup any statics created by RLZ. Must be done before NotificationService
194 // is destroyed. 194 // is destroyed.
195 rlz::RLZTracker::CleanupRlz(); 195 RLZTracker::CleanupRlz();
196 #endif 196 #endif
197 197
198 return restart_last_session; 198 return restart_last_session;
199 } 199 }
200 200
201 void ShutdownPostThreadsStop(bool restart_last_session) { 201 void ShutdownPostThreadsStop(bool restart_last_session) {
202 delete g_browser_process; 202 delete g_browser_process;
203 g_browser_process = NULL; 203 g_browser_process = NULL;
204 204
205 // crbug.com/95079 - This needs to happen after the browser process object 205 // crbug.com/95079 - This needs to happen after the browser process object
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 338
339 void SetTryingToQuit(bool quitting) { 339 void SetTryingToQuit(bool quitting) {
340 g_trying_to_quit = quitting; 340 g_trying_to_quit = quitting;
341 } 341 }
342 342
343 bool IsTryingToQuit() { 343 bool IsTryingToQuit() {
344 return g_trying_to_quit; 344 return g_trying_to_quit;
345 } 345 }
346 346
347 } // namespace browser_shutdown 347 } // namespace browser_shutdown
OLDNEW
« no previous file with comments | « chrome/browser/DEPS ('k') | chrome/browser/chrome_browser_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698