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

Side by Side Diff: chrome/browser/signin/easy_unlock_toggle_flow.cc

Issue 649313004: Standardize usage of virtual/override/final in chrome/browser/signin/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/signin/easy_unlock_toggle_flow.h" 5 #include "chrome/browser/signin/easy_unlock_toggle_flow.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 return oauth2_info.client_id; 47 return oauth2_info.client_id;
48 } 48 }
49 49
50 } // namespace 50 } // namespace
51 51
52 class EasyUnlockToggleFlow::ToggleApiCall : public OAuth2ApiCallFlow { 52 class EasyUnlockToggleFlow::ToggleApiCall : public OAuth2ApiCallFlow {
53 public: 53 public:
54 ToggleApiCall(EasyUnlockToggleFlow* flow, 54 ToggleApiCall(EasyUnlockToggleFlow* flow,
55 const std::string& phone_public_key, 55 const std::string& phone_public_key,
56 bool toggle_enable); 56 bool toggle_enable);
57 virtual ~ToggleApiCall(); 57 ~ToggleApiCall() override;
58 58
59 // OAuth2ApiCallFlow 59 // OAuth2ApiCallFlow
60 virtual GURL CreateApiCallUrl() override; 60 GURL CreateApiCallUrl() override;
61 virtual std::string CreateApiCallBody() override; 61 std::string CreateApiCallBody() override;
62 virtual std::string CreateApiCallBodyContentType() override; 62 std::string CreateApiCallBodyContentType() override;
63 virtual void ProcessApiCallSuccess(const net::URLFetcher* source) override; 63 void ProcessApiCallSuccess(const net::URLFetcher* source) override;
64 virtual void ProcessApiCallFailure(const net::URLFetcher* source) override; 64 void ProcessApiCallFailure(const net::URLFetcher* source) override;
65 65
66 private: 66 private:
67 EasyUnlockToggleFlow* flow_; 67 EasyUnlockToggleFlow* flow_;
68 const std::string phone_public_key_; 68 const std::string phone_public_key_;
69 const bool toggle_enable_; 69 const bool toggle_enable_;
70 70
71 DISALLOW_COPY_AND_ASSIGN(ToggleApiCall); 71 DISALLOW_COPY_AND_ASSIGN(ToggleApiCall);
72 }; 72 };
73 73
74 EasyUnlockToggleFlow::ToggleApiCall::ToggleApiCall( 74 EasyUnlockToggleFlow::ToggleApiCall::ToggleApiCall(
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 } 179 }
180 180
181 void EasyUnlockToggleFlow::OnIssueAdviceSuccess( 181 void EasyUnlockToggleFlow::OnIssueAdviceSuccess(
182 const IssueAdviceInfo& issue_advice) { 182 const IssueAdviceInfo& issue_advice) {
183 NOTREACHED(); 183 NOTREACHED();
184 } 184 }
185 185
186 void EasyUnlockToggleFlow::ReportToggleApiCallResult(bool success) { 186 void EasyUnlockToggleFlow::ReportToggleApiCallResult(bool success) {
187 callback_.Run(success); 187 callback_.Run(success);
188 } 188 }
OLDNEW
« no previous file with comments | « chrome/browser/signin/easy_unlock_toggle_flow.h ('k') | chrome/browser/signin/fake_account_reconcilor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698