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

Side by Side Diff: chrome/browser/ui/views/profiles/profile_chooser_view.cc

Issue 2203673002: [Sync] Move //components/sync_driver to //components/sync/driver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sd-a
Patch Set: Full change rebased on static lib. Created 4 years, 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/profiles/profile_chooser_view.h" 5 #include "chrome/browser/ui/views/profiles/profile_chooser_view.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/metrics/user_metrics.h" 8 #include "base/metrics/user_metrics.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
(...skipping 27 matching lines...) Expand all
38 #include "chrome/common/url_constants.h" 38 #include "chrome/common/url_constants.h"
39 #include "chrome/grit/chromium_strings.h" 39 #include "chrome/grit/chromium_strings.h"
40 #include "chrome/grit/generated_resources.h" 40 #include "chrome/grit/generated_resources.h"
41 #include "components/browser_sync/browser/profile_sync_service.h" 41 #include "components/browser_sync/browser/profile_sync_service.h"
42 #include "components/prefs/pref_service.h" 42 #include "components/prefs/pref_service.h"
43 #include "components/signin/core/browser/profile_oauth2_token_service.h" 43 #include "components/signin/core/browser/profile_oauth2_token_service.h"
44 #include "components/signin/core/browser/signin_error_controller.h" 44 #include "components/signin/core/browser/signin_error_controller.h"
45 #include "components/signin/core/browser/signin_header_helper.h" 45 #include "components/signin/core/browser/signin_header_helper.h"
46 #include "components/signin/core/browser/signin_manager.h" 46 #include "components/signin/core/browser/signin_manager.h"
47 #include "components/signin/core/common/profile_management_switches.h" 47 #include "components/signin/core/common/profile_management_switches.h"
48 #include "components/sync_driver/sync_error_controller.h" 48 #include "components/sync/driver/sync_error_controller.h"
49 #include "content/public/browser/render_widget_host_view.h" 49 #include "content/public/browser/render_widget_host_view.h"
50 #include "content/public/browser/user_metrics.h" 50 #include "content/public/browser/user_metrics.h"
51 #include "grit/theme_resources.h" 51 #include "grit/theme_resources.h"
52 #include "third_party/skia/include/core/SkColor.h" 52 #include "third_party/skia/include/core/SkColor.h"
53 #include "ui/base/l10n/l10n_util.h" 53 #include "ui/base/l10n/l10n_util.h"
54 #include "ui/base/material_design/material_design_controller.h" 54 #include "ui/base/material_design/material_design_controller.h"
55 #include "ui/base/resource/resource_bundle.h" 55 #include "ui/base/resource/resource_bundle.h"
56 #include "ui/compositor/clip_recorder.h" 56 #include "ui/compositor/clip_recorder.h"
57 #include "ui/compositor/paint_recorder.h" 57 #include "ui/compositor/paint_recorder.h"
58 #include "ui/gfx/canvas.h" 58 #include "ui/gfx/canvas.h"
(...skipping 2239 matching lines...) Expand 10 before | Expand all | Expand 10 after
2298 IncognitoModePrefs::GetAvailability(browser_->profile()->GetPrefs()) != 2298 IncognitoModePrefs::GetAvailability(browser_->profile()->GetPrefs()) !=
2299 IncognitoModePrefs::DISABLED; 2299 IncognitoModePrefs::DISABLED;
2300 return incognito_available && !browser_->profile()->IsGuestSession(); 2300 return incognito_available && !browser_->profile()->IsGuestSession();
2301 } 2301 }
2302 2302
2303 void ProfileChooserView::PostActionPerformed( 2303 void ProfileChooserView::PostActionPerformed(
2304 ProfileMetrics::ProfileDesktopMenu action_performed) { 2304 ProfileMetrics::ProfileDesktopMenu action_performed) {
2305 ProfileMetrics::LogProfileDesktopMenu(action_performed, gaia_service_type_); 2305 ProfileMetrics::LogProfileDesktopMenu(action_performed, gaia_service_type_);
2306 gaia_service_type_ = signin::GAIA_SERVICE_TYPE_NONE; 2306 gaia_service_type_ = signin::GAIA_SERVICE_TYPE_NONE;
2307 } 2307 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/toolbar/recent_tabs_sub_menu_model_unittest.cc ('k') | chrome/browser/ui/webui/browsing_history_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698