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

Side by Side Diff: chrome/browser/extensions/extension_file_browser_private_api.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/extensions/extension_file_browser_private_api.h" 5 #include "chrome/browser/extensions/extension_file_browser_private_api.h"
6 6
7 #include "base/base64.h" 7 #include "base/base64.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/json/json_writer.h" 10 #include "base/json/json_writer.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 #include "webkit/fileapi/file_system_operation.h" 46 #include "webkit/fileapi/file_system_operation.h"
47 #include "webkit/fileapi/file_system_operation_context.h" 47 #include "webkit/fileapi/file_system_operation_context.h"
48 #include "webkit/fileapi/file_system_path_manager.h" 48 #include "webkit/fileapi/file_system_path_manager.h"
49 #include "webkit/fileapi/file_system_types.h" 49 #include "webkit/fileapi/file_system_types.h"
50 #include "webkit/fileapi/file_system_util.h" 50 #include "webkit/fileapi/file_system_util.h"
51 51
52 #ifdef OS_CHROMEOS 52 #ifdef OS_CHROMEOS
53 #include "chrome/browser/chromeos/cros/cros_library.h" 53 #include "chrome/browser/chromeos/cros/cros_library.h"
54 #endif 54 #endif
55 55
56 using content::BrowserThread;
57
56 // Error messages. 58 // Error messages.
57 const char kFileError[] = "File error %d"; 59 const char kFileError[] = "File error %d";
58 const char kInvalidFileUrl[] = "Invalid file URL"; 60 const char kInvalidFileUrl[] = "Invalid file URL";
59 const char kVolumeDevicePathNotFound[] = "Device path not found"; 61 const char kVolumeDevicePathNotFound[] = "Device path not found";
60 62
61 #ifdef OS_CHROMEOS 63 #ifdef OS_CHROMEOS
62 // Volume type strings. 64 // Volume type strings.
63 const std::string kVolumeTypeFlash = "flash"; 65 const std::string kVolumeTypeFlash = "flash";
64 const std::string kVolumeTypeOptical = "optical"; 66 const std::string kVolumeTypeOptical = "optical";
65 const std::string kVolumeTypeHardDrive = "hdd"; 67 const std::string kVolumeTypeHardDrive = "hdd";
(...skipping 1634 matching lines...) Expand 10 before | Expand all | Expand 10 after
1700 l10n_util::GetStringUTF16(IDS_CERT_MANAGER_VIEW_CERT_BUTTON)); 1702 l10n_util::GetStringUTF16(IDS_CERT_MANAGER_VIEW_CERT_BUTTON));
1701 dict->SetString("PLAY_MEDIA", 1703 dict->SetString("PLAY_MEDIA",
1702 l10n_util::GetStringUTF16(IDS_CONTENT_CONTEXT_PLAY)); 1704 l10n_util::GetStringUTF16(IDS_CONTENT_CONTEXT_PLAY));
1703 #if defined(OS_CHROMEOS) 1705 #if defined(OS_CHROMEOS)
1704 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnablePhotoEditor)) 1706 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnablePhotoEditor))
1705 dict->SetString("ENABLE_PHOTO_EDITOR", "true"); 1707 dict->SetString("ENABLE_PHOTO_EDITOR", "true");
1706 #endif 1708 #endif
1707 1709
1708 return true; 1710 return true;
1709 } 1711 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_event_router_forwarder_unittest.cc ('k') | chrome/browser/extensions/extension_function.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698