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

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

Issue 164280: First step to create application shortcuts on Linux. (Closed)
Patch Set: now tested Created 11 years, 4 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/shell_integration.h" 5 #include "chrome/browser/shell_integration.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/path_service.h"
8 #include "base/thread.h" 9 #include "base/thread.h"
9 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
11 #include "chrome/common/chrome_paths.h"
10 12
11 /////////////////////////////////////////////////////////////////////////////// 13 ///////////////////////////////////////////////////////////////////////////////
12 // ShellIntegration::DefaultBrowserWorker 14 // ShellIntegration::DefaultBrowserWorker
13 // 15 //
14 16
15 ShellIntegration::DefaultBrowserWorker::DefaultBrowserWorker( 17 ShellIntegration::DefaultBrowserWorker::DefaultBrowserWorker(
16 DefaultBrowserObserver* observer) 18 DefaultBrowserObserver* observer)
17 : observer_(observer), 19 : observer_(observer),
18 ui_loop_(MessageLoop::current()), 20 ui_loop_(MessageLoop::current()),
19 file_loop_(g_browser_process->file_thread()->message_loop()) { 21 file_loop_(g_browser_process->file_thread()->message_loop()) {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 } 70 }
69 } 71 }
70 72
71 void ShellIntegration::DefaultBrowserWorker::UpdateUI(bool is_default) { 73 void ShellIntegration::DefaultBrowserWorker::UpdateUI(bool is_default) {
72 if (observer_) { 74 if (observer_) {
73 DefaultBrowserUIState state = 75 DefaultBrowserUIState state =
74 is_default ? STATE_DEFAULT : STATE_NOT_DEFAULT; 76 is_default ? STATE_DEFAULT : STATE_NOT_DEFAULT;
75 observer_->SetDefaultBrowserUIState(state); 77 observer_->SetDefaultBrowserUIState(state);
76 } 78 }
77 } 79 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698