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

Unified Diff: chrome/browser/android/blimp/blimp_contents_profile_attachment.cc

Issue 2623023002: Remove //chrome as an embedder of blimp. (Closed)
Patch Set: One more rebase for good measure Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/blimp/blimp_contents_profile_attachment.cc
diff --git a/chrome/browser/android/blimp/blimp_contents_profile_attachment.cc b/chrome/browser/android/blimp/blimp_contents_profile_attachment.cc
deleted file mode 100644
index b75d44febf8380f8be76304cc07dfba54fa17725..0000000000000000000000000000000000000000
--- a/chrome/browser/android/blimp/blimp_contents_profile_attachment.cc
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/android/blimp/blimp_contents_profile_attachment.h"
-
-#include "base/logging.h"
-#include "base/supports_user_data.h"
-#include "blimp/client/public/contents/blimp_contents.h"
-
-namespace {
-const char kBlimpContentsProfileAttachment[] =
- "blimp_contents_profile_attachment";
-
-// A holder struct for a Profile that can be used as data.
-struct Attachment : public base::SupportsUserData::Data {
- Profile* profile;
-};
-
-} // namespace
-
-void AttachProfileToBlimpContents(blimp::client::BlimpContents* blimp_contents,
- Profile* profile) {
- DCHECK(profile);
- Attachment* attachment = new Attachment;
- attachment->profile = profile;
- blimp_contents->SetUserData(kBlimpContentsProfileAttachment, attachment);
-}
-
-Profile* GetProfileFromBlimpContents(
- blimp::client::BlimpContents* blimp_contents) {
- Attachment* attachment = static_cast<Attachment*>(
- blimp_contents->GetUserData(kBlimpContentsProfileAttachment));
- DCHECK(attachment);
- return attachment->profile;
-}

Powered by Google App Engine
This is Rietveld 408576698