| OLD | NEW |
| 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/ui/browser.h" | 5 #include "chrome/browser/ui/browser.h" |
| 6 | 6 |
| 7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 #include <shellapi.h> | 9 #include <shellapi.h> |
| 10 #endif // OS_WIN | 10 #endif // OS_WIN |
| (...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 #endif | 479 #endif |
| 480 params.app_name = DevToolsWindow::kDevToolsApp; | 480 params.app_name = DevToolsWindow::kDevToolsApp; |
| 481 return CreateWithParams(params); | 481 return CreateWithParams(params); |
| 482 } | 482 } |
| 483 | 483 |
| 484 void Browser::InitBrowserWindow() { | 484 void Browser::InitBrowserWindow() { |
| 485 DCHECK(!window_); | 485 DCHECK(!window_); |
| 486 | 486 |
| 487 window_ = CreateBrowserWindow(); | 487 window_ = CreateBrowserWindow(); |
| 488 | 488 |
| 489 #if defined(OS_WIN) | 489 #if defined(OS_WIN) && !defined(USE_AURA) |
| 490 { | 490 { |
| 491 // TODO: This might hit the disk | 491 // TODO: This might hit the disk |
| 492 // http://code.google.com/p/chromium/issues/detail?id=61638 | 492 // http://code.google.com/p/chromium/issues/detail?id=61638 |
| 493 base::ThreadRestrictions::ScopedAllowIO allow_io; | 493 base::ThreadRestrictions::ScopedAllowIO allow_io; |
| 494 | 494 |
| 495 // Set the app user model id for this application to that of the application | 495 // Set the app user model id for this application to that of the application |
| 496 // name. See http://crbug.com/7028. | 496 // name. See http://crbug.com/7028. |
| 497 ui::win::SetAppIdForWindow( | 497 ui::win::SetAppIdForWindow( |
| 498 is_app() ? | 498 is_app() ? |
| 499 ShellIntegration::GetAppId(UTF8ToWide(app_name_), profile_->GetPath()) : | 499 ShellIntegration::GetAppId(UTF8ToWide(app_name_), profile_->GetPath()) : |
| (...skipping 4676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5176 } | 5176 } |
| 5177 | 5177 |
| 5178 void Browser::ShowSyncSetup() { | 5178 void Browser::ShowSyncSetup() { |
| 5179 ProfileSyncService* service = | 5179 ProfileSyncService* service = |
| 5180 profile()->GetOriginalProfile()->GetProfileSyncService(); | 5180 profile()->GetOriginalProfile()->GetProfileSyncService(); |
| 5181 if (service->HasSyncSetupCompleted()) | 5181 if (service->HasSyncSetupCompleted()) |
| 5182 ShowOptionsTab(chrome::kSyncSetupSubPage); | 5182 ShowOptionsTab(chrome::kSyncSetupSubPage); |
| 5183 else | 5183 else |
| 5184 service->ShowLoginDialog(); | 5184 service->ShowLoginDialog(); |
| 5185 } | 5185 } |
| OLD | NEW |