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

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

Issue 10139002: Preventing our default handlers for ChromeOS to show up or confuse the user (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressed 4th review Created 8 years, 8 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) 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/platform_util.h" 5 #include "chrome/browser/platform_util.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 file_manager_util::ShowFileInFolder(full_path); 48 file_manager_util::ShowFileInFolder(full_path);
49 } 49 }
50 50
51 void OpenItem(const FilePath& full_path) { 51 void OpenItem(const FilePath& full_path) {
52 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 52 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
53 BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE, 53 BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE,
54 base::Bind(&OpenItemOnFileThread, full_path)); 54 base::Bind(&OpenItemOnFileThread, full_path));
55 } 55 }
56 56
57 void OpenExternal(const GURL& url) { 57 void OpenExternal(const GURL& url) {
58 if (url.SchemeIs("mailto")) {
benwells 2012/04/26 00:34:42 I know I asked for this change, but ... we discuss
Mr4D (OOO till 08-26) 2012/04/26 13:46:35 Well - I have tried all cases I could come up with
59 std::string string_url = kGmailComposeUrl;
60 string_url.append(url.spec());
61 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
62 base::Bind(OpenURL, string_url));
63 }
64 } 58 }
65 59
66 } // namespace platform_util 60 } // namespace platform_util
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698