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

Side by Side Diff: chrome/browser/web_applications/web_app_linux.cc

Issue 9558012: Cleanup: IWYU for BrowserThread. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix win Created 8 years, 9 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/web_applications/web_app.h" 5 #include "chrome/browser/web_applications/web_app.h"
6 6
7 #include "base/environment.h" 7 #include "base/environment.h"
8 #include "base/logging.h"
8 #include "content/public/browser/browser_thread.h" 9 #include "content/public/browser/browser_thread.h"
9 10
10 namespace web_app { 11 namespace web_app {
11 namespace internals { 12 namespace internals {
12 13
13 void CreateShortcutTask(const FilePath& web_app_path, 14 void CreateShortcutTask(const FilePath& web_app_path,
14 const FilePath& profile_path, 15 const FilePath& profile_path,
15 const ShellIntegration::ShortcutInfo& shortcut_info) { 16 const ShellIntegration::ShortcutInfo& shortcut_info) {
16 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::FILE)); 17 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::FILE));
17 18
18 scoped_ptr<base::Environment> env(base::Environment::Create()); 19 scoped_ptr<base::Environment> env(base::Environment::Create());
19 20
20 std::string shortcut_template; 21 std::string shortcut_template;
21 if (!ShellIntegration::GetDesktopShortcutTemplate(env.get(), 22 if (!ShellIntegration::GetDesktopShortcutTemplate(env.get(),
22 &shortcut_template)) { 23 &shortcut_template)) {
23 return; 24 return;
24 } 25 }
25 ShellIntegration::CreateDesktopShortcut(shortcut_info, shortcut_template); 26 ShellIntegration::CreateDesktopShortcut(shortcut_info, shortcut_template);
26 } 27 }
27 28
28 } // namespace internals 29 } // namespace internals
29 } // namespace web_app 30 } // namespace web_app
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/select_file_dialog_impl_kde.cc ('k') | chrome/browser/web_applications/web_app_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698