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

Side by Side Diff: chrome/browser/ui/passwords/manage_passwords_bubble_model.cc

Issue 1419103009: [Sync] Componentize ProfileSyncService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@max_bogue_sync_backend_host
Patch Set: Created 5 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/passwords/manage_passwords_bubble_model.h" 5 #include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/prefs/pref_service.h" 12 #include "base/prefs/pref_service.h"
13 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
14 #include "chrome/browser/password_manager/password_store_factory.h" 14 #include "chrome/browser/password_manager/password_store_factory.h"
15 #include "chrome/browser/profiles/profile.h" 15 #include "chrome/browser/profiles/profile.h"
16 #include "chrome/browser/sync/profile_sync_service.h"
17 #include "chrome/browser/sync/profile_sync_service_factory.h" 16 #include "chrome/browser/sync/profile_sync_service_factory.h"
18 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h" 17 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h"
19 #include "chrome/browser/ui/passwords/manage_passwords_view_utils.h" 18 #include "chrome/browser/ui/passwords/manage_passwords_view_utils.h"
20 #include "chrome/common/url_constants.h" 19 #include "chrome/common/url_constants.h"
21 #include "chrome/grit/chromium_strings.h" 20 #include "chrome/grit/chromium_strings.h"
22 #include "chrome/grit/generated_resources.h" 21 #include "chrome/grit/generated_resources.h"
22 #include "components/browser_sync/browser/profile_sync_service.h"
23 #include "components/password_manager/core/browser/password_bubble_experiment.h" 23 #include "components/password_manager/core/browser/password_bubble_experiment.h"
24 #include "components/password_manager/core/browser/password_store.h" 24 #include "components/password_manager/core/browser/password_store.h"
25 #include "components/password_manager/core/common/credential_manager_types.h" 25 #include "components/password_manager/core/common/credential_manager_types.h"
26 #include "components/password_manager/core/common/password_manager_ui.h" 26 #include "components/password_manager/core/common/password_manager_ui.h"
27 #include "ui/base/l10n/l10n_util.h" 27 #include "ui/base/l10n/l10n_util.h"
28 28
29 namespace metrics_util = password_manager::metrics_util; 29 namespace metrics_util = password_manager::metrics_util;
30 30
31 namespace { 31 namespace {
32 32
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 return metrics_util::NO_UPDATE_SUBMISSION; 400 return metrics_util::NO_UPDATE_SUBMISSION;
401 } 401 }
402 if (state_ != password_manager::ui::PENDING_PASSWORD_UPDATE_STATE) 402 if (state_ != password_manager::ui::PENDING_PASSWORD_UPDATE_STATE)
403 return metrics_util::NO_UPDATE_SUBMISSION; 403 return metrics_util::NO_UPDATE_SUBMISSION;
404 if (password_overridden_) 404 if (password_overridden_)
405 return update_events[3][behavior]; 405 return update_events[3][behavior];
406 if (ShouldShowMultipleAccountUpdateUI()) 406 if (ShouldShowMultipleAccountUpdateUI())
407 return update_events[2][behavior]; 407 return update_events[2][behavior];
408 return update_events[1][behavior]; 408 return update_events[1][behavior];
409 } 409 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698