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

Side by Side Diff: chrome/browser/ui/views/ash/launcher/chrome_launcher_delegate.cc

Issue 9691032: Use OffTheRecord profile in case of GuestLogin for AppList. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: change the TODO assignment Created 8 years, 9 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
« no previous file with comments | « chrome/browser/ui/views/ash/app_list/app_list_view_delegate.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/ui/views/ash/launcher/chrome_launcher_delegate.h" 5 #include "chrome/browser/ui/views/ash/launcher/chrome_launcher_delegate.h"
6 6
7 #include "ash/launcher/launcher_model.h" 7 #include "ash/launcher/launcher_model.h"
8 #include "ash/launcher/launcher_types.h" 8 #include "ash/launcher/launcher_types.h"
9 #include "ash/wm/window_util.h" 9 #include "ash/wm/window_util.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 if (current->second.app_id == app_id && current->second.pinned) 511 if (current->second.app_id == app_id && current->second.pinned)
512 Unpin(current->first); 512 Unpin(current->first);
513 } 513 }
514 } 514 }
515 515
516 void ChromeLauncherDelegate::SetAppIconLoaderForTest(AppIconLoader* loader) { 516 void ChromeLauncherDelegate::SetAppIconLoaderForTest(AppIconLoader* loader) {
517 app_icon_loader_.reset(loader); 517 app_icon_loader_.reset(loader);
518 } 518 }
519 519
520 Profile* ChromeLauncherDelegate::GetProfileForNewWindows() { 520 Profile* ChromeLauncherDelegate::GetProfileForNewWindows() {
521 Profile* profile = ProfileManager::GetDefaultProfile(); 521 Profile* profile = ProfileManager::GetDefaultProfileOrOffTheRecord();
522 if (browser_defaults::kAlwaysOpenIncognitoWindow && 522 if (browser_defaults::kAlwaysOpenIncognitoWindow &&
sky 2012/03/19 15:29:28 Do we need 522-526 anymore? Isn't it now covered b
Jun Mukai 2012/03/20 04:36:08 Removed.
523 IncognitoModePrefs::ShouldLaunchIncognito( 523 IncognitoModePrefs::ShouldLaunchIncognito(
524 *CommandLine::ForCurrentProcess(), 524 *CommandLine::ForCurrentProcess(),
525 profile->GetPrefs())) { 525 profile->GetPrefs())) {
526 profile = profile->GetOffTheRecordProfile(); 526 profile = profile->GetOffTheRecordProfile();
527 } 527 }
528 return profile; 528 return profile;
529 } 529 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/ash/app_list/app_list_view_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698