]> khamidou — GitHub mirrors - electron.git/commitdiff
Fix build failing on Windows
authorEran Tiktin <eran.t@mce-sys.com>
Fri, 4 Sep 2015 20:24:42 +0000 (23:24 +0300)
committerEran Tiktin <eran.t@mce-sys.com>
Fri, 4 Sep 2015 20:24:42 +0000 (23:24 +0300)
build.py would fail on Windows due to a couple of changes made in #2459.

This commit fixes those issues.

atom/browser/atom_browser_main_parts.cc

index 4463115cfee505201b201dbda624c43acfce72f4..806c12b7eace4d10ab29a16ad2db8d9a9d711068 100644 (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);
 }