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

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

Issue 10332190: Add SystemMonitor::GetMediaDevices() (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix win 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 "chrome/browser/chrome_browser_main_linux.h" 5 #include "chrome/browser/chrome_browser_main_linux.h"
6 6
7 #include "chrome/browser/media_gallery/media_device_notifications_linux.h"
8
9 #if defined(USE_LINUX_BREAKPAD) 7 #if defined(USE_LINUX_BREAKPAD)
10 #include <stdlib.h> 8 #include <stdlib.h>
11 9
12 #include "base/linux_util.h" 10 #include "base/linux_util.h"
13 #include "chrome/app/breakpad_linuxish.h" 11 #include "chrome/app/breakpad_linuxish.h"
14 #include "chrome/browser/prefs/pref_service.h" 12 #include "chrome/browser/prefs/pref_service.h"
15 #include "chrome/common/env_vars.h" 13 #include "chrome/common/env_vars.h"
16 #include "chrome/common/pref_names.h" 14 #include "chrome/common/pref_names.h"
17 #include "content/public/browser/browser_thread.h" 15 #include "content/public/browser/browser_thread.h"
18 16
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // Needs to be called after we have chrome::DIR_USER_DATA and 78 // Needs to be called after we have chrome::DIR_USER_DATA and
81 // g_browser_process. This happens in PreCreateThreads. 79 // g_browser_process. This happens in PreCreateThreads.
82 content::BrowserThread::PostTask(content::BrowserThread::FILE, 80 content::BrowserThread::PostTask(content::BrowserThread::FILE,
83 FROM_HERE, 81 FROM_HERE,
84 base::Bind(&GetLinuxDistroCallback)); 82 base::Bind(&GetLinuxDistroCallback));
85 83
86 if (IsCrashReportingEnabled(local_state())) 84 if (IsCrashReportingEnabled(local_state()))
87 InitCrashReporter(); 85 InitCrashReporter();
88 #endif 86 #endif
89 87
90 const FilePath kDefaultMtabPath("/etc/mtab");
91 media_device_notifications_linux_ =
92 new chrome::MediaDeviceNotificationsLinux(kDefaultMtabPath);
93 media_device_notifications_linux_->Init();
94
95 ChromeBrowserMainPartsPosix::PreProfileInit(); 88 ChromeBrowserMainPartsPosix::PreProfileInit();
96 } 89 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698