Fix build failing on Windows

build.py would fail on Windows due to a couple of changes made in #2459.

This commit fixes those issues.
This commit is contained in:
Eran Tiktin 2015-09-04 23:24:42 +03:00
parent 090c817ac9
commit 0577e911b3

View file

@ -28,7 +28,8 @@ namespace atom {
namespace {
const base::FilePath::CharType kStoragePartitionDirname[] = "Partitions";
const base::FilePath::CharType kStoragePartitionDirname[] =
FILE_PATH_LITERAL("Partitions");
void GetStoragePartitionConfig(const GURL& partition,
base::FilePath* partition_path,
@ -77,7 +78,7 @@ content::BrowserContext* AtomBrowserMainParts::GetBrowserContextForPartition(
return browser_context_map_.get(id);
scoped_ptr<brightray::BrowserContext> browser_context(CreateBrowserContext());
browser_context->Initialize(partition_path.value(), in_memory);
browser_context->Initialize(partition_path.AsUTF8Unsafe(), in_memory);
browser_context_map_.set(id, browser_context.Pass());
return browser_context_map_.get(id);
}