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

Side by Side Diff: chrome/browser/chromeos/chrome_browser_main_chromeos.cc

Issue 10068021: Fix file access on Chrome for ChromeOS on Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed clang problem 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 | 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/chromeos/chrome_browser_main_chromeos.h" 5 #include "chrome/browser/chromeos/chrome_browser_main_chromeos.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/chromeos/chromeos_version.h" 9 #include "base/chromeos/chromeos_version.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 chromeos::ScreenLocker::InitClass(); 331 chromeos::ScreenLocker::InitClass();
332 } 332 }
333 333
334 // This forces the ProfileManager to be created and register for the 334 // This forces the ProfileManager to be created and register for the
335 // notification it needs to track the logged in user. 335 // notification it needs to track the logged in user.
336 g_browser_process->profile_manager(); 336 g_browser_process->profile_manager();
337 337
338 // TODO(abarth): Should this move to InitializeNetworkOptions()? 338 // TODO(abarth): Should this move to InitializeNetworkOptions()?
339 // Allow access to file:// on ChromeOS for tests. 339 // Allow access to file:// on ChromeOS for tests.
340 if (parsed_command_line().HasSwitch(switches::kAllowFileAccess)) 340 if (parsed_command_line().HasSwitch(switches::kAllowFileAccess))
341 net::URLRequest::AllowFileAccess(); 341 net::URLRequest::AllowAccessToAllFiles();
342 342
343 // There are two use cases for kLoginUser: 343 // There are two use cases for kLoginUser:
344 // 1) if passed in tandem with kLoginPassword, to drive a "StubLogin" 344 // 1) if passed in tandem with kLoginPassword, to drive a "StubLogin"
345 // 2) if passed alone, to signal that the indicated user has already 345 // 2) if passed alone, to signal that the indicated user has already
346 // logged in and we should behave accordingly. 346 // logged in and we should behave accordingly.
347 // This handles case 2. 347 // This handles case 2.
348 if (parsed_command_line().HasSwitch(switches::kLoginUser) && 348 if (parsed_command_line().HasSwitch(switches::kLoginUser) &&
349 !parsed_command_line().HasSwitch(switches::kLoginPassword)) { 349 !parsed_command_line().HasSwitch(switches::kLoginPassword)) {
350 std::string username = 350 std::string username =
351 parsed_command_line().GetSwitchValueASCII(switches::kLoginUser); 351 parsed_command_line().GetSwitchValueASCII(switches::kLoginUser);
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 493
494 // Let VideoPropertyWriter unregister itself as an observer of the ash::Shell 494 // Let VideoPropertyWriter unregister itself as an observer of the ash::Shell
495 // singleton before the shell is destroyed. 495 // singleton before the shell is destroyed.
496 video_property_writer_.reset(); 496 video_property_writer_.reset();
497 // Remove PowerButtonObserver attached to a D-Bus client before 497 // Remove PowerButtonObserver attached to a D-Bus client before
498 // DBusThreadManager is shut down. 498 // DBusThreadManager is shut down.
499 power_button_observer_.reset(); 499 power_button_observer_.reset();
500 500
501 ChromeBrowserMainPartsLinux::PostMainMessageLoopRun(); 501 ChromeBrowserMainPartsLinux::PostMainMessageLoopRun();
502 } 502 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/net/chrome_network_delegate.h » ('j') | chrome/browser/net/chrome_network_delegate.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698