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

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

Issue 248021: Reverting 27379. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 2 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 | « base/task.h ('k') | chrome/browser/browsing_data_remover.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_process_impl.h" 5 #include "chrome/browser/browser_process_impl.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "base/clipboard.h" 8 #include "base/clipboard.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 void BrowserProcessImpl::CreateGoogleURLTracker() { 435 void BrowserProcessImpl::CreateGoogleURLTracker() {
436 DCHECK(google_url_tracker_.get() == NULL); 436 DCHECK(google_url_tracker_.get() == NULL);
437 scoped_ptr<GoogleURLTracker> google_url_tracker(new GoogleURLTracker); 437 scoped_ptr<GoogleURLTracker> google_url_tracker(new GoogleURLTracker);
438 google_url_tracker_.swap(google_url_tracker); 438 google_url_tracker_.swap(google_url_tracker);
439 } 439 }
440 440
441 // The BrowserProcess object must outlive the file thread so we use traits 441 // The BrowserProcess object must outlive the file thread so we use traits
442 // which don't do any management. 442 // which don't do any management.
443 template <> 443 template <>
444 struct RunnableMethodTraits<BrowserProcessImpl> { 444 struct RunnableMethodTraits<BrowserProcessImpl> {
445 void RetainCallee(BrowserProcessImpl*) {} 445 static void RetainCallee(BrowserProcessImpl*) {}
446 void ReleaseCallee(BrowserProcessImpl*) {} 446 static void ReleaseCallee(BrowserProcessImpl*) {}
447 }; 447 };
448 448
449 void BrowserProcessImpl::CheckForInspectorFiles() { 449 void BrowserProcessImpl::CheckForInspectorFiles() {
450 file_thread()->message_loop()->PostTask 450 file_thread()->message_loop()->PostTask
451 (FROM_HERE, 451 (FROM_HERE,
452 NewRunnableMethod(this, &BrowserProcessImpl::DoInspectorFilesCheck)); 452 NewRunnableMethod(this, &BrowserProcessImpl::DoInspectorFilesCheck));
453 } 453 }
454 454
455 void BrowserProcessImpl::DoInspectorFilesCheck() { 455 void BrowserProcessImpl::DoInspectorFilesCheck() {
456 // Runs on FILE thread. 456 // Runs on FILE thread.
457 DCHECK(file_thread_->message_loop() == MessageLoop::current()); 457 DCHECK(file_thread_->message_loop() == MessageLoop::current());
458 bool result = false; 458 bool result = false;
459 459
460 FilePath inspector_dir; 460 FilePath inspector_dir;
461 if (PathService::Get(chrome::DIR_INSPECTOR, &inspector_dir)) { 461 if (PathService::Get(chrome::DIR_INSPECTOR, &inspector_dir)) {
462 result = file_util::PathExists(inspector_dir); 462 result = file_util::PathExists(inspector_dir);
463 } 463 }
464 464
465 have_inspector_files_ = result; 465 have_inspector_files_ = result;
466 } 466 }
OLDNEW
« no previous file with comments | « base/task.h ('k') | chrome/browser/browsing_data_remover.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698